summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/toggle.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 23:22:42 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 23:22:42 -0400
commit4ef96e2d9994c407f0f2f46301eb91fab6b48a37 (patch)
tree776e011ceeac1c0bc3f2aa1d7c374c1a6919d21c /IkiWiki/Plugin/toggle.pm
parent7a2a235fa45d84e4a5f3f6bb3b5059d08939cddc (diff)
parentecc40d1769c84a2cca3070e848adfd8710f27d8b (diff)
Merge branch 'master' into autoconfig
Diffstat (limited to 'IkiWiki/Plugin/toggle.pm')
-rw-r--r--IkiWiki/Plugin/toggle.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/toggle.pm b/IkiWiki/Plugin/toggle.pm
index cd9617e25..e203defb0 100644
--- a/IkiWiki/Plugin/toggle.pm
+++ b/IkiWiki/Plugin/toggle.pm
@@ -110,7 +110,7 @@ sub preprocess_toggleable (@) { #{{{
sub format (@) { #{{{
my %params=@_;
- if ($params{content}=~s!(<div class="toggleable(?:-open)?" id="[^"]+">)</div>!$1!g) {
+ if ($params{content}=~s!(<div class="toggleable(?:-open)?" id="[^"]+">\s*)</div>!$1!g) {
$params{content}=~s/<div class="toggleableend">//g;
if (! ($params{content}=~s!^<body>!<body>$javascript!m)) {
# no </body> tag, probably in preview mode