diff options
author | Enrico Zini <enrico@enricozini.org> | 2008-07-26 23:05:22 +0100 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 23:05:57 -0400 |
commit | 02078c406ca71780e45af0f4dea6ceafcd56c730 (patch) | |
tree | 6fb1d519cceabee2acb1165e3d59702b89c9cfee /IkiWiki | |
parent | dd40fbdf0394fa2ea7f588a64faad6cd05208fff (diff) |
Handle the case when HTML got tidied.
This fixes debian bug #492529.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/toggle.pm | 2 |
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 |