From: Joey Hess Date: Mon, 10 Mar 2008 13:43:25 +0000 (-0400) Subject: web commit by XTaran: Bug report: htmltidy has no possibilty to use an alternative... X-Git-Tag: 2.41~154^2~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d0cac16029c735134375ec7e9996117ca189bea;p=ikiwiki.git web commit by XTaran: Bug report: htmltidy has no possibilty to use an alternative config file which may other usages --- diff --git a/doc/bugs/htmltidy_has_no_possibilty_to_use_an_alternative_config_file_which_may_break_other_usages.mdwn b/doc/bugs/htmltidy_has_no_possibilty_to_use_an_alternative_config_file_which_may_break_other_usages.mdwn new file mode 100644 index 000000000..163f01750 --- /dev/null +++ b/doc/bugs/htmltidy_has_no_possibilty_to_use_an_alternative_config_file_which_may_break_other_usages.mdwn @@ -0,0 +1,11 @@ +The htmltidy plugin as in the Backports.org version 2.32.3~bpo40+1 of ikiwiki does not play well with other usages of HTML Tidy since it has no possibility to use an alternative config file. + +E.g. since I usually use HTML Tidy manually only to check and not to fix HTML, I have "write-back: no" in my $HOME/.tidyrc which throws an awful lot of Perl warnings and renders all ikiwiki pages empty as soon as I enable htmltidy. + +I see two possibilities how to fix this: + +1) Replace "$pid=open2(*IN, *OUT, 'tidy -quiet -asxhtml -utf8 --show-body-only yes - +-show-warnings no --tidy-mark no');" by "$pid=open2(*IN, *OUT, 'tidy -quiet -asxhtml -utf8 --show-body-only yes - +-show-warnings no --tidy-mark no --write-back yes');" -- This is the fastest fix, but not very elegant, since it doesn't solve the general problem. + +2) Make it configurable via ikiwiki.setup as e.g.with the tags plugin. Haven't looked into this code yet.