]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmltidy.pm
test web revert (fixed bug)
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmltidy.pm
index 8a0e8f42874cd4cc0eddc70f0f48830185a8b4c4..185d01dd68c54a3db899ee299a7a5552ba62a519 100644 (file)
@@ -25,13 +25,18 @@ sub getsetup () {
                },
                htmltidy => {
                        type => "string",
-                       example => "tidy --show-body-only yes --show-warnings no --tidy-mark no --markup yes -quiet -asxhtml -utf8",
                        description => "tidy command line",
                        safe => 0, # path
-                       rebuild => 0,
+                       rebuild => undef,
                },
 }
 
+sub checkconfig () {
+       if (! defined $config{htmltidy}) {
+               $config{htmltidy}="tidy -quiet -asxhtml -utf8 --show-body-only yes --show-warnings no --tidy-mark no --markup yes";
+       }
+}
+
 sub sanitize (@) {
        my %params=@_;