diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-05 02:28:04 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-05 02:28:04 +0000 |
commit | d98b2480f9bef1205bb6014c39e9af22843074d6 (patch) | |
tree | f7cab073ffd85fa918298ee8898f5c435d009235 /IkiWiki | |
parent | e8ec0187dad6eb81e71fedfaefced2dc2f6b2fda (diff) | |
download | ikiwiki-d98b2480f9bef1205bb6014c39e9af22843074d6.tar ikiwiki-d98b2480f9bef1205bb6014c39e9af22843074d6.tar.gz |
* Move tidy back to sanitize hook, found out how to only show body.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/htmltidy.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/htmltidy.pm b/IkiWiki/Plugin/htmltidy.pm index 94263e558..5a6a494ed 100644 --- a/IkiWiki/Plugin/htmltidy.pm +++ b/IkiWiki/Plugin/htmltidy.pm @@ -13,11 +13,11 @@ use IkiWiki; use IPC::Open2; sub import { #{{{ - IkiWiki::hook(type => "format", id => "tidy", call => \&format); + IkiWiki::hook(type => "sanitize", id => "tidy", call => \&sanitize); } # }}} -sub format ($) { #{{{ - open2(*IN, *OUT, 'tidy -quiet -asxhtml -indent -utf8 --show-warnings no --tidy-mark no') or return shift; +sub sanitize ($) { #{{{ + open2(*IN, *OUT, 'tidy -quiet -asxhtml -indent -utf8 --show-body-only yes --show-warnings no --tidy-mark no') or return shift; # open2 doesn't respect "use open ':utf8'" binmode (IN, ':utf8'); binmode (OUT, ':utf8'); |