summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-21 04:51:14 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-21 04:51:14 -0400
commit42b6a6178c9432ca13799a1d0dfc2a7d8d37886b (patch)
treeae08740dba5a2676404cd454863549dbd7b26698
parentf937c1fb8074a512d8bb788fa275f5e90595cd47 (diff)
delete inline data after it's used
-rw-r--r--IkiWiki/Plugin/inline.pm4
1 files changed, 3 insertions, 1 deletions
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!<div class="inline" id="([^"]+)"></div>!$inline[$1]!g;
+ $params{content}=~s{<div class="inline" id="([^"]+)"></div>}{
+ delete @inline[$1]
+ }eg;
return $params{content};
} #}}}