diff options
author | Joey Hess <joey@kitenet.net> | 2010-08-12 14:29:22 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-08-12 14:29:22 -0400 |
commit | a68241838b37cd40eaedb917330412c19491ca70 (patch) | |
tree | 1815d721710bebefb190132e134c426d84e50ff7 /IkiWiki | |
parent | 292e820974fd308148841b1714967619d4acba59 (diff) | |
download | ikiwiki-a68241838b37cd40eaedb917330412c19491ca70.tar ikiwiki-a68241838b37cd40eaedb917330412c19491ca70.tar.gz |
correct comment; javascript is put after <body>
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/relativedate.pm | 2 | ||||
-rw-r--r-- | IkiWiki/Plugin/toggle.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/relativedate.pm b/IkiWiki/Plugin/relativedate.pm index c9280ef14..7296889ab 100644 --- a/IkiWiki/Plugin/relativedate.pm +++ b/IkiWiki/Plugin/relativedate.pm @@ -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}; diff --git a/IkiWiki/Plugin/toggle.pm b/IkiWiki/Plugin/toggle.pm index 20967d3fd..1f93f87fe 100644 --- a/IkiWiki/Plugin/toggle.pm +++ b/IkiWiki/Plugin/toggle.pm @@ -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}; } } |