From: Ryan Burgoyne Date: Mon, 25 Feb 2013 20:32:27 +0000 (-0700) Subject: added error handling to avoid error message about uninitialized value in concatenation X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=d305f016e91cb81f2c9ffc41c3e1f23a4a99b504;p=ikiwiki-pandoc.git added error handling to avoid error message about uninitialized value in concatenation --- diff --git a/pandoc.pm b/pandoc.pm index 4df0249..eff476b 100644 --- a/pandoc.pm +++ b/pandoc.pm @@ -244,7 +244,9 @@ sub htmlize ($@) { my $compiled_string = ''; foreach my $word_or_space(@uncompiled_string) { if (ref($word_or_space) eq "HASH") { - $compiled_string .= $word_or_space->{"Str"}; + if ($word_or_space->{"Str"}) { + $compiled_string .= $word_or_space->{"Str"}; + } } else { $compiled_string .= ' ';