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 preference to preserve whitespace in tag #273

Closed
NikolasKomonen opened this issue Jan 2, 2019 · 2 comments
Closed

Formatting preference to preserve whitespace in tag #273

NikolasKomonen opened this issue Jan 2, 2019 · 2 comments
Labels
enhancement New feature or request formatting This issue or enhancement is related to formatting support
Milestone

Comments

@NikolasKomonen
Copy link
Contributor

eg: The format of

<a>      </a>

should result in the same amount of spaces.

@fbricon
Copy link
Contributor

fbricon commented Jan 2, 2019

I thought we already preserved whitespace during formatting.

@NikolasKomonen
Copy link
Contributor Author

NikolasKomonen commented Jan 2, 2019

I thought we already preserved whitespace during formatting.

We preserve whitespace when there is also non-whitespace content inside the element.
If its only whitespace then we ignore it.

@fbricon fbricon added enhancement New feature or request formatting This issue or enhancement is related to formatting support labels Jan 25, 2019
@NikolasKomonen NikolasKomonen added this to the v0.4.0 milestone Feb 14, 2019
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 4, 2019
Fixes eclipse#273

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 4, 2019
Fixes eclipse#273

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 4, 2019
Fixes eclipse#273

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
fbricon pushed a commit that referenced this issue Mar 6, 2019
Fixes #273

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 6, 2019
Fixes eclipse#273

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 6, 2019
Fixes eclipse#273

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request formatting This issue or enhancement is related to formatting support
Projects
None yet
Development

No branches or pull requests

2 participants