DotJoshJohnson / vscode-xml

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

Formatter v2 doesn't get along with mixed content #238

Closed eminsenay closed 5 years ago

eminsenay commented 5 years ago

Description

Formatter v2 cannot format xml files which contain mixed content, i.e., an element with a text node and some children elements. Example:

<?xml version="1.0" encoding="utf-8" ?>
<test>I have a mixed content<something>hi</something></test>

Expected form after the formatting:

<?xml version="1.0" encoding="utf-8" ?>
<test>I have a mixed content
    <something>hi</something>
</test>

Instead, "Format Document" option does nothing.

Formatter Implementation

v2. Classic formatter works fine.

XML Tools Version

2.3.2

VS Code Version

1.28.0

Operating System

Windows 10

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue is being automatically closed because it has not had recent activity. Thank you for your contributions.