From 02078c406ca71780e45af0f4dea6ceafcd56c730 Mon Sep 17 00:00:00 2001 From: Enrico Zini Date: Sat, 26 Jul 2008 23:05:22 +0100 Subject: [PATCH] Handle the case when HTML got tidied. This fixes debian bug #492529. --- IkiWiki/Plugin/toggle.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!(
)
!$1!g) { + if ($params{content}=~s!(
\s*)
!$1!g) { $params{content}=~s/
//g; if (! ($params{content}=~s!^!$javascript!m)) { # no tag, probably in preview mode -- 2.44.0