Skip to content

Feature request: "preserve" value for uppercase-tags #735

@ghost

Description

Thanks for maintaining HTML Tidy!

The documentation for --uppercase-tags says:

Type: Boolean ...
This option specifies if Tidy should output tag names in upper case.
The default is no which results in lower case tag names, except for XML input where the original case is preserved.

I can see that those two distinct functionalities may each be useful in specific use cases. It is good that tidy offers them.

However, if the user wishes for no modifications to be made to existing tag names, then they would seem to be out of luck: tidy simply does not seem to offer this.

Therefore, I ask that the Boolean for --uppercase-tags be changed to an enum with three possible values: each of the two existing values ("yes" and "no"), and a new, no-op value (e.g. "preserve").

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions