From 7c66edacd864bdb1a7c657b6131f53666fc0675b Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 23 Aug 2006 06:08:12 +0000 Subject: [PATCH 1/1] update --- IkiWiki/Render.pm | 8 +++++--- doc/index.mdwn | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index d988e0956..5351ee7ad 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -104,12 +104,14 @@ sub preprocess ($$$;$) { #{{{ # Note: preserve order of params, some plugins may # consider it significant. 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) { - push @params, $1, (defined $2 ? $2 : (defined $3 ? $3 : $4)); + push @params, $1, $val; } else { - push @params, (defined $2 ? $2 : (defined $3 ? $3 : $4)), ''; + push @params, $val, ''; } } return $hooks{preprocess}{$command}{call}->( diff --git a/doc/index.mdwn b/doc/index.mdwn index 2f78f11aa..8f3911bd9 100644 --- a/doc/index.mdwn +++ b/doc/index.mdwn @@ -12,7 +12,8 @@ Instead it can use [[Subversion]] (or [[Git]]). and thoughts about ikiwiki to [[Discussion]]. [[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 -- 2.44.0