danschultequb / qub-typescript-xml-vscode

This extension provides XML language support for VS Code, beyond simple text coloring.
MIT License
7 stars 0 forks source link

line breaks and extra spaces forced in mixed text nodes #23

Open tbenko73 opened 3 years ago

tbenko73 commented 3 years ago

The XML formatter breaks up mixed text nodes, and inserts spaces and line breaks inside text contents. There is no option to disable or control this behaviour.

Example of original xml:

    <LABEL>some text<NBSP/>and other text</LABEL>

Changed to this:

    <LABEL>
        some text
        <NBSP/>
        and other text
    </LABEL>

Unwanted side effect: the original text content of the text node is altered and extra space characters and line breaks are added.