Closed
Description
If I specify a value for the mute
option in ~/.tidyrc
, for example:
mute: MISSING_DOCTYPE
This causes tidy
to work normally, observing the mute
option I specified, but it also causes tidy
to output the following error message and exit with a return code of 1:
Loading config file "~/.tidyrc" failed, err = 1
Specifying --mute MISSING_DOCTYPE
on the command line instead of specifying it in ~/.tidyrc
does not trigger this problem.
Reproducing is simple enough. Run the following command with mute: MISSING_DOCTYPE
in ~/.tidyrc
:
echo '<html><head><title>foo</title></head><body></body></html>' | tidy
Then take that line out of ~/.tidyrc
then run the following:
echo '<html><head><title>foo</title></head><body></body></html>' | tidy --mute MISSING_DOCTYPE