]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index 0002371c1373d504686ceea1b3ab756e2319ebae..9b2caffcfe690ec6788d409840766bcde0cdb038 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};
 } #}}}