correct comment; javascript is put after <body>

master
Joey Hess 2010-08-12 14:29:22 -04:00
parent 292e820974
commit a68241838b
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ sub format (@) {
my %params=@_;
if (! ($params{content}=~s!^(<body[^>]*>)!$1.include_javascript($params{page})!em)) {
# no </body> tag, probably in preview mode
# no <body> tag, probably in preview mode
$params{content}=include_javascript($params{page}, 1).$params{content};
}
return $params{content};

View File

@ -69,7 +69,7 @@ sub format (@) {
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[^>]*>)!$1.include_javascript($params{page})!em)) {
# no </body> tag, probably in preview mode
# no <body> tag, probably in preview mode
$params{content}=include_javascript($params{page}, 1).$params{content};
}
}