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

AutoFormatOnSave inserts newlines for empty elements #432

Open
mdlaird opened this issue Dec 21, 2024 · 0 comments
Open

AutoFormatOnSave inserts newlines for empty elements #432

mdlaird opened this issue Dec 21, 2024 · 0 comments

Comments

@mdlaird
Copy link

mdlaird commented Dec 21, 2024

I was editing a file with many empty elements, like:

<tag1></tag1>
<tag2></tag2>
<tag3></tag3>

AutoFormatOnSave changed these to:

<tag1> </tag1> <tag2> </tag2> <tag3> </tag3>

This messed up the program whose XML file I was editing, since it now saw whitespace as the value of those elements instead of NULL.

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

1 participant