delete inline data after it's used

master
Joey Hess 2008-03-21 04:51:14 -04:00
parent f937c1fb80
commit 42b6a6178c
1 changed files with 3 additions and 1 deletions

View 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};
} #}}}