pretty-xml icon indicating copy to clipboard operation
pretty-xml copied to clipboard

XML with comment gets indented incorrectly

Open simonschaufi opened this issue 1 year ago • 1 comments

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>

simonschaufi avatar Nov 27 '24 22:11 simonschaufi

@shanethehat can you please have a look into this issue which is very important for me?

simonschaufi avatar Jan 13 '25 13:01 simonschaufi