-
Notifications
You must be signed in to change notification settings - Fork 93
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 node content inserts new line without proper indentation #152
Comments
I actually think adding a new line is wrong, as it definitely changes the data value |
Would a result of
be the best option? |
the content of the property node should not be modified on formatting, otherwise the value is modified. All tabs, space and new lines should be kept, otherwise the semantic of the xml is modified. |
@apupier
should remain as it is when formatted? Instead of:
|
yes. it is the only to not change the semantic of the xml. |
Fixes eclipse-lemminx#152 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#152 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#152 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#152 Signed-off-by: Nikolas Komonen <[email protected]>
When "format.joinContentLines":false, formatting a node with text in it puts the text in the next line, with no indentation:
Both Eclipse and IntelliJ keep the text at the same place. If a new line was to be inserted (which I'm really not sure about), at least some proper indentation should be used.
The text was updated successfully, but these errors were encountered: