]> git.g-eek.se Git - ikiwiki-pandoc.git/commitdiff
Fixed bug that kept the author from being properly stored and used the quotemeta...
authorRyan Burgoyne <rburgoyne@gecoinc.com>
Mon, 25 Feb 2013 20:14:32 +0000 (13:14 -0700)
committerRyan Burgoyne <rburgoyne@gecoinc.com>
Mon, 25 Feb 2013 20:14:32 +0000 (13:14 -0700)
pandoc.pm

index 17a001305cedf0c57741000a3abd847373bc06b5..4df0249cdfb25226c9ed6ba0771b47a257802ba1 100644 (file)
--- a/pandoc.pm
+++ b/pandoc.pm
@@ -233,7 +233,7 @@ sub htmlize ($@) {
     my $num_authors = @doc_authors;
     my @primary_author = ();
     if ($num_authors gt 0) {
-        my @primary_author = @{$doc_authors[0]};
+        @primary_author = @{$doc_authors[0]};
     }
     my @doc_date = @{$header_section{'docDate'}};
 
@@ -258,13 +258,13 @@ sub htmlize ($@) {
     my $date = compile_string @doc_date;
 
     if ($title) {
-        $pagestate{$page}{meta}{title} = $title;
+        $pagestate{$page}{meta}{title} = quotemeta($title);
     }
     if ($author) {
-        $pagestate{$page}{meta}{author} = $author;
+        $pagestate{$page}{meta}{author} = quotemeta($author);
     }
     if ($date) {
-        $pagestate{$page}{meta}{date} = $date;
+        $pagestate{$page}{meta}{date} = quotemeta($date);
     }
 
     return $content;