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

Formatter inserts spaces in empty lines #157

Closed
opus131 opened this issue Jun 17, 2019 · 0 comments · Fixed by eclipse/lemminx#504
Closed

Formatter inserts spaces in empty lines #157

opus131 opened this issue Jun 17, 2019 · 0 comments · Fixed by eclipse/lemminx#504
Assignees
Labels
bug Something isn't working formatting
Milestone

Comments

@opus131
Copy link

opus131 commented Jun 17, 2019

The formatter inserts spaces in empty lines, up to the current indent-level of the surrounding elements.

Current result:
image

Expected result:
image

This causes a lot of whitespace diffs, and most other XML formatters (that I know of) do not behave like that.

Could you provide a config-setting to control that behaviour?

@opus131 opus131 changed the title Formatter inserts emply lines with space up to the indent-level Formatter inserts spaces to emply lines Jun 17, 2019
@opus131 opus131 changed the title Formatter inserts spaces to emply lines Formatter inserts spaces in empty lines Jun 17, 2019
@fbricon fbricon added this to the 0.8.0 milestone Jul 3, 2019
@angelozerr angelozerr added bug Something isn't working formatting labels Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants