X-Git-Url: https://git.donarmstrong.com/?p=ikiwiki_plugins.git;a=blobdiff_plain;f=sweavealike.pm;fp=sweavealike.pm;h=16713a0092c64e57b0447872612caf093acd2c07;hp=1808090cbc226404ebe083003c40e5064fe55e1f;hb=0480a392d8eb5ff892dcf71f293d86d2f51a32c6;hpb=a1428cf75eb5277b147a7c7506581fed310d51b0 diff --git a/sweavealike.pm b/sweavealike.pm index 1808090..16713a0 100644 --- a/sweavealike.pm +++ b/sweavealike.pm @@ -142,10 +142,10 @@ sub preprocess { $image_loc_esc =~ s/"/\\"/g; will_render($param{page},$image_loc); eval { - $pagestate{$param{page}}{$id}{R}->run(qq{png(filename="$image_loc_esc",width=$param{width},height=$param{height});}); + $pagestate{$param{page}}{$id}{R}->run(qq|png(filename="$image_loc_esc",width=$param{width},height=$param{height});|); }; if ($@) { - error("code 'png(filename="$image_loc_esc",width=$param{width},height=$param{height});' (from internal figure handling) produced error '$@'"); + error(qq|code 'png(filename="$image_loc_esc",width=$param{width},height=$param{height});' (from internal figure handling) produced error '$@'|); } } my $code_result;