Skip to content

Option to disable tidy code fixing option #693

Closed

Description

@sjeeva

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.

To learn more about HTML Tidy see http://tidy.sourceforge.net
Please fill bug reports and queries using the "tracker" on the Tidy web site.
Additionally, questions can be sent to html-tidy@w3.org
HTML and CSS specifications are available from http://www.w3.org/
Lobby your company to join W3C, see http://www.w3.org/Consortium

Activity

  1. geoffmcl commented on Mar 15, 2018

    @geoffmcl
    Contributor

    @sjeeva thank you for your issue...

    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 -

    1. How to disable an error message - document has errors that must be fixed ...
    2. 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...

  2. added this to the 5.7 milestone on Mar 15, 2018
  3. balthisar commented on Jul 9, 2021

    @balthisar
    Member

    Due to lack of feedback, I'm closing this. Please feel free to re-open if new information comes in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions