* Move tidy back to sanitize hook, found out how to only show body.
parent
e8ec0187da
commit
d98b2480f9
|
@ -13,11 +13,11 @@ use IkiWiki;
|
||||||
use IPC::Open2;
|
use IPC::Open2;
|
||||||
|
|
||||||
sub import { #{{{
|
sub import { #{{{
|
||||||
IkiWiki::hook(type => "format", id => "tidy", call => \&format);
|
IkiWiki::hook(type => "sanitize", id => "tidy", call => \&sanitize);
|
||||||
} # }}}
|
} # }}}
|
||||||
|
|
||||||
sub format ($) { #{{{
|
sub sanitize ($) { #{{{
|
||||||
open2(*IN, *OUT, 'tidy -quiet -asxhtml -indent -utf8 --show-warnings no --tidy-mark no') or return shift;
|
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'"
|
# open2 doesn't respect "use open ':utf8'"
|
||||||
binmode (IN, ':utf8');
|
binmode (IN, ':utf8');
|
||||||
binmode (OUT, ':utf8');
|
binmode (OUT, ':utf8');
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
ikiwiki (1.17) UNRELEASED; urgency=low
|
ikiwiki (1.17) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* Disable tidy generator tag.
|
* Disable tidy generator tag.
|
||||||
|
* Move tidy back to sanitize hook, found out how to only show body.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Fri, 4 Aug 2006 21:00:05 -0400
|
-- Joey Hess <joeyh@debian.org> Fri, 4 Aug 2006 22:26:43 -0400
|
||||||
|
|
||||||
ikiwiki (1.16) unstable; urgency=low
|
ikiwiki (1.16) unstable; urgency=low
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue