Closed FranklinWhale closed 4 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.
Add comment to prevent the issue from being stale
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.
Add comment to prevent the issue from being stale
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.
Add comment to prevent the issue from being stale
Description
The following XML document is handled properly by "Format Document" but not "XML Tools: Minify XML":
After "Format Document", the result is as follows, which is good:
However, with "XML Tools: Minify XML", text contents that have a whitespace before a EOL are normalized, which affects the meaning of those contents in whitespace sensitive applications:
The minifier should either stop text normalization when an ancestor element has
xml:space="preserve"
or change line breaks to
,

or

depending on the EOL setting.Formatter Implementation
v2
XML Tools Version
2.4.0
VS Code Version
1.31.1
Operating System
Windows 10 1809