summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/template.pm1
-rw-r--r--IkiWiki/Render.pm2
2 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index 5b4eeb3a8..7e23306cb 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -44,7 +44,6 @@ sub preprocess (@) { #{{{
$template->param($param => $params{$param});
}
-
return IkiWiki::preprocess($params{page}, $params{destpage},
$template->output);
} # }}}
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 38bfcdfcb..d988e0956 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -104,7 +104,7 @@ sub preprocess ($$$;$) { #{{{
# Note: preserve order of params, some plugins may
# consider it significant.
my @params;
- while ($params =~ /(?:(\w+)=)?(?:"""(.+)"""|"([^"]+)"|(\S+))(?:\s+|$)/g) {
+ while ($params =~ /(?:(\w+)=)?(?:"""(.+)"""|"([^"]+)"|(\S+))(?:\s+|$)/sg) {
if (defined $1) {
push @params, $1, (defined $2 ? $2 : (defined $3 ? $3 : $4));
}