X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sweavealike.pm;h=96bb5564c8aaceef08337a911792503759b7dfca;hb=ed39926a77066179afaa4ea4a429a11ab8ed73cc;hp=7c92884a6be275665729377459afe303974f150b;hpb=d8c668f39002b75b88d693b0650383d690777583;p=ikiwiki_plugins.git diff --git a/sweavealike.pm b/sweavealike.pm index 7c92884..96bb556 100644 --- a/sweavealike.pm +++ b/sweavealike.pm @@ -176,7 +176,7 @@ sub preprocess { } if (not exists $param{results} or (defined $param{results} and - $param{results} !~ /^(hide|false)$/i;)) { + $param{results} !~ /^(hide|false)$/i)) { $output .= $code_result; } if (exists $param{echo} or @@ -204,12 +204,12 @@ sub savestate { # make sure we never try to save an R process for my $page (keys %pagestate) { next unless exists $pagestate{$page}{$id}; - next unless ; if (exists $pagestate{$page}{$id}{R}) { if (defined $pagestate{$page}{$id}{R} and $pagestate{$page}{$id}{R}->is_started()) { $pagestate{$page}{$id}{R}->stop; } + delete $pagestate{$page}{$id}{R}; } if (exists $pagestate{$page}{$id}{fignum}) { delete $pagestate{$page}{$id}{fignum}