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.
i.e. it adds a closing tag to an already closed one...
This happens with the attached config file (and only, if output-html is given).
The text was updated successfully, but these errors were encountered:
@axbender thanks for the issue... this seems a question between XMLandHTML... a conversion...
I can repeat the output with -xml, that is your input-xml: yes, and-ashtml, your output-html: yes, options, on your input... so do not need all the config... but what does this indicate?
You are exactly correct! tidy has no understanding of self-closing tags... maybe the HTML 5.2 REC might help in that...
I think tidy can not really be used to convert xml to html... that is not in its purpose, aims... although it does its best... but probably fails in many instances... is that what we are seeing here?
If yes, then I am not sure tidyshould, or could, be improved in this regard. What do others think?
Also need to search for other related issues... any pointers appreciated...
One tool I know, to convert XML to HTML, is xsltproc... you supply a style.xsl for your xml, include <xsl:output method="html"/> in this, and process the xml you have... get html... there may be others...
We use this to generate the tidy.1 man file, and the QuickRefHTML, from a tidy XML output... see man/tidy1.xsl.in in the source for part of this... and the CMakeLists.txt for the generation steps...
Again, I do not think tidy is a good tool for such conversions... but maybe it should...
Look forward to further feedback, comments, patches, PR, ... to test... thanks...