]> sipb.mit.edu Git - ikiwiki.git/commitdiff
delete inline data after it's used
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 21 Mar 2008 08:51:14 +0000 (04:51 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 21 Mar 2008 08:51:14 +0000 (04:51 -0400)
IkiWiki/Plugin/inline.pm

index 0002371c1373d504686ceea1b3ab756e2319ebae..3edfbc5319662fa19b37291eac8363e89c4c16ff 100644 (file)
@@ -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};
 } #}}}