]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmltidy.pm
* Turn off tidy indentation too.
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmltidy.pm
index ad405dce581184860b819cd077cc262ff6728875..e3929731991ab1e9c37fd1f7d4910d42ee820e4d 100644 (file)
@@ -5,7 +5,7 @@
 # It is particularly useful when the html plugin is used.
 #
 # by Faidon Liambotis
-package IkiWiki::Plugin::tidy;
+package IkiWiki::Plugin::htmltidy;
 
 use warnings;
 use strict;
@@ -17,11 +17,11 @@ sub import { #{{{
 } # }}}
 
 sub sanitize ($) { #{{{
-       open2(*IN, *OUT, 'tidy -quiet -xml -indent -utf8') or return shift;
+       open2(*IN, *OUT, 'tidy -quiet -asxhtml -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'); 
-
+       
        print OUT shift;
        close OUT;