pretty-xml
pretty-xml copied to clipboard
XML with comment gets indented incorrectly
The problem is that the HTML comment get's detected as openingTag which is wrong.
<?xml version="1.0"?>
<config>
<!-- comment -->
<type>select</type>
</config>
will be printed like this:
<?xml version="1.0"?>
<config>
<!-- comment -->
<type>select</type>
</config>
@shanethehat can you please have a look into this issue which is very important for me?