]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/htmltidy.pm
fixups tidy change
[ikiwiki.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=@_;