aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorEnrico Zini <enrico@enricozini.org>2008-07-26 23:05:22 +0100
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 23:05:57 -0400
commit02078c406ca71780e45af0f4dea6ceafcd56c730 (patch)
tree6fb1d519cceabee2acb1165e3d59702b89c9cfee /IkiWiki
parentdd40fbdf0394fa2ea7f588a64faad6cd05208fff (diff)
downloadikiwiki-02078c406ca71780e45af0f4dea6ceafcd56c730.tar
ikiwiki-02078c406ca71780e45af0f4dea6ceafcd56c730.tar.gz
Handle the case when HTML got tidied.
This fixes debian bug #492529.
Diffstat (limited to 'IkiWiki')
-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