DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
320 stars 87 forks source link

Child elements of elements immidiately followed by text are not indented from the parent element #372

Open girlpunk opened 2 years ago

girlpunk commented 2 years ago

Description

When an element is immidiately followed by text content, children of that element are indented to the same level as the parent element, and not to one level further as expected.

For example:

<contaiiner>
    <outer>stuff<inner />
    <inner />
</outer>
<another />
</container>

Expected behaviour:

<contaiiner>
    <outer>
        stuff
        <inner />
        <inner />
    </outer>
    <another />
</container>

Formatter Implementation

v2

XML Tools Version

v2.5.1

VS Code Version

1.61.1

Operating System

Windows 10 21H2 (19044)