master
joey 2006-08-23 06:08:12 +00:00
parent f27bf9e400
commit 7c66edacd8
2 changed files with 7 additions and 4 deletions

View File

@ -104,12 +104,14 @@ sub preprocess ($$$;$) { #{{{
# Note: preserve order of params, some plugins may # Note: preserve order of params, some plugins may
# consider it significant. # consider it significant.
my @params; my @params;
while ($params =~ /(?:(\w+)=)?(?:"""(.+)"""|"([^"]+)"|(\S+))(?:\s+|$)/sg) { while ($params =~ /(?:(\w+)=)?(?:"""\n?(.+)"""|"([^"]+)"|(\S+))(?:\s+|$)/sg) {
my $val=(defined $2 ? $2 : (defined $3 ? $3 : $4));
chomp $val;
if (defined $1) { if (defined $1) {
push @params, $1, (defined $2 ? $2 : (defined $3 ? $3 : $4)); push @params, $1, $val;
} }
else { else {
push @params, (defined $2 ? $2 : (defined $3 ? $3 : $4)), ''; push @params, $val, '';
} }
} }
return $hooks{preprocess}{$command}{call}->( return $hooks{preprocess}{$command}{call}->(

View File

@ -12,7 +12,8 @@ Instead it can use [[Subversion]] (or [[Git]]).
and thoughts about ikiwiki to [[Discussion]]. and thoughts about ikiwiki to [[Discussion]].
[[template id=note text=""" [[template id=note text="""
If you use ikiwiki, please list your wiki in [[IkiWikiUsers]]. Thanks! If you use ikiwiki, please list your wiki in [[IkiWikiUsers]].
Thanks! --[[Joey]]
"""]] """]]
* [[Setup]] has a tutorial for setting up ikiwiki, and [[Usage]] documents * [[Setup]] has a tutorial for setting up ikiwiki, and [[Usage]] documents