DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
324 stars 86 forks source link

Improve formatting when closing bracket is on a new line #304

Open haemmer-dave opened 4 years ago

haemmer-dave commented 4 years ago

Description Assume you have an XML file with closing brackets on a new line. For example,

<?xml version="1.0" encoding="UTF-8"?>
<notes
><author
>name</author
></notes
>

After clicking on Format Document the result is

<?xml version="1.0" encoding="UTF-8"?>
<notes
>
    <author
>name</author
></notes
>

However, I wouldd expect the output to be

<?xml version="1.0" encoding="UTF-8"?>
<notes>
    <author>name</author>
</notes>