You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am planning to run tidy in my devops pipeline and expect the developer to fix the error and warning.. Currently tidy doesn't print the current file name it is working and also the print out below message...
How do I disable tidy code fixing option and also disable below warning?
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.
The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.
For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
. You may also want to try
"http://www.cast.org/bobby/" which is a free Web-based
service for checking URLs for accessibility.
First, what version of tidy are you using? That sourceforge reference suggests a version back at 2009, or before!, nearly 10 years ago! Current tidy source is at https://github.com/htacg/tidy-html5, and the current master branch version is 5.6.0, the next version is 5.7.3
And you do not show the input that caused the error and/or warning messages...
You seem to be asking two questions -
How to disable an error message - document has errors that must be fixed ...
How to disable the info message - To learn more about HTML Tidy see http://tidy.sourceforge.net...
As to the first question you can not disable error messages. In current tidy, you can use --force-output yes to push tidy to do an output even if there are errors, and you can use --show-info no or --quiet, -q to suppress most info type messages...
But please show the tidy version, run tidy -v, and give a minimal sample html input, configuration used, current output, and expected output to clearly show what you are talking about, asking... thanks...
Reacted by Mohamed Badaoui and Benedict Leuchtenberger
Activity
geoffmcl commentedon Mar 15, 2018
@sjeeva thank you for your issue...
First, what version of
tidyare you using? Thatsourceforgereference suggests a version back at 2009, or before!, nearly 10 years ago! Current tidy source is at https://github.com/htacg/tidy-html5, and the currentmasterbranch version is5.6.0, thenextversion is5.7.3And you do not show the input that caused the error and/or warning messages...
You seem to be asking two questions -
document has errors that must be fixed ...To learn more about HTML Tidy see http://tidy.sourceforge.net...As to the first question you can not disable
errormessages. In currenttidy, you can use--force-output yesto push tidy to do an output even if there are errors, and you can use--show-info noor--quiet,-qto suppress mostinfotype messages...But please show the
tidyversion, runtidy -v, and give a minimal sample html input, configuration used, current output, and expected output to clearly show what you are talking about, asking... thanks...balthisar commentedon Jul 9, 2021
Due to lack of feedback, I'm closing this. Please feel free to re-open if new information comes in.