You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware of #1017, and setting "files.trimTrailingWhitespace":false does not solve the problem. All multiple whitespaces are always formatted as single whitespce:
<Tag><Inner> Test Spaces </Inner></Tag>
becomes:
<Tag>
<Inner> Test Spaces </Inner>
</Tag>
The text was updated successfully, but these errors were encountered:
Ok, I see that there is an option where you can specify tag names for which to preserve spaces.
Adding tag <Inner> in my case, does fix the problem.
I think that manually adding tag names to a list is not an viable and scalable way to handle that.
Probably, it would be better to add an option checkbox that sets the default handling for multiple whitespaces: when checked, it should preveserve whitespaces for all tags. And the tagnames list, maybe, should be turned in a blacklist for tags that need whitespaces trimmed.
Also, using the legacy formatter preserves spaces as well.
Formatting this XML:
leads to this:
I am aware of #1017, and setting "files.trimTrailingWhitespace":false does not solve the problem. All multiple whitespaces are always formatted as single whitespce:
becomes:
The text was updated successfully, but these errors were encountered: