diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-02 12:02:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-02 12:02:34 -0400 |
commit | bd48ff734a0e01a6f2c097932f728ccb680702a2 (patch) | |
tree | 14cb265a4390ced25b4226aa0983deaa6349dd06 /IkiWiki/Plugin | |
parent | 408ee89fd7c1dc70510385a7cf263a05862dda97 (diff) | |
download | ikiwiki-bd48ff734a0e01a6f2c097932f728ccb680702a2.tar ikiwiki-bd48ff734a0e01a6f2c097932f728ccb680702a2.tar.gz |
fixups tidy change
Need checkconfig hook; examples don't become default values.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/htmltidy.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/htmltidy.pm b/IkiWiki/Plugin/htmltidy.pm index 8a0e8f428..185d01dd6 100644 --- a/IkiWiki/Plugin/htmltidy.pm +++ b/IkiWiki/Plugin/htmltidy.pm @@ -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=@_; |