Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatting partially truncates trailing blanks #1017

Open
CodingForFunToo opened this issue Jul 9, 2024 · 2 comments
Open

formatting partially truncates trailing blanks #1017

CodingForFunToo opened this issue Jul 9, 2024 · 2 comments

Comments

@CodingForFunToo
Copy link

CodingForFunToo commented Jul 9, 2024

When formatting elements with names that have trailing blanks, they a trimmed to only one trailing blank.
An xml document <Node><Name>a name with trailing blanks </Name></Node> becomes

<Node>
    <Name>a name with trailing blanks </Name>
</Node>

after formatting (note that only one blank remains).

@fbricon
Copy link
Collaborator

fbricon commented Jul 9, 2024

Do you have

"files.trimTrailingWhitespace":true

in your settings.json?

@fbricon
Copy link
Collaborator

fbricon commented Jul 9, 2024

My bad this only applies to trailing whitespace at the end of the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants