From 42b6a6178c9432ca13799a1d0dfc2a7d8d37886b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 21 Mar 2008 04:51:14 -0400 Subject: delete inline data after it's used --- IkiWiki/Plugin/inline.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}; } #}}} -- cgit v1.2.3