X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sweavealike.pm;h=4747b18c98e65e1fa8d6d46dfcf3212be1d5c479;hb=4ed794890c1071b0b9b521948a932cc48550d9e6;hp=661a4316e1806d7b38cd847747236c5043f2056a;hpb=c4c96c7716df32cdb64927f09af4a35b1cab7aeb;p=ikiwiki_plugins.git diff --git a/sweavealike.pm b/sweavealike.pm index 661a431..4747b18 100644 --- a/sweavealike.pm +++ b/sweavealike.pm @@ -70,12 +70,12 @@ sub preprocess { if ($@) { error("code '$param{code}' produced error '$@'"); } - my $output = "sweave output\n\n"; + my $output; if (exists $param{verbatim}) { $output = $param{code}; $output =~ s/^/> /mg; } - $output .= $code_result; + $output .= "\n".$code_result; $output =~ s/^/ /mg; return($output); }