From: Joey Hess Date: Fri, 21 Mar 2008 08:51:14 +0000 (-0400) Subject: delete inline data after it's used X-Git-Tag: 2.41~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42b6a6178c9432ca13799a1d0dfc2a7d8d37886b;p=ikiwiki.git delete inline data after it's used --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 0002371c1..3edfbc531 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -58,7 +58,9 @@ sub format (@) { #{{{ # Fill in the inline content generated earlier. This is actually an # optimisation. - $params{content}=~s!
!$inline[$1]!g; + $params{content}=~s{
}{ + delete @inline[$1] + }eg; return $params{content}; } #}}}