parent
dd40fbdf03
commit
02078c406c
|
@ -110,7 +110,7 @@ sub preprocess_toggleable (@) { #{{{
|
||||||
sub format (@) { #{{{
|
sub format (@) { #{{{
|
||||||
my %params=@_;
|
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;
|
$params{content}=~s/<div class="toggleableend">//g;
|
||||||
if (! ($params{content}=~s!^<body>!<body>$javascript!m)) {
|
if (! ($params{content}=~s!^<body>!<body>$javascript!m)) {
|
||||||
# no </body> tag, probably in preview mode
|
# no </body> tag, probably in preview mode
|
||||||
|
|
Loading…
Reference in New Issue