We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The formatter does not include an new line if there are multiple root elements. I think its inconsistent because it does add them for nested elements.
<parent> <child> Text </child> <child> Text </child> </parent> <parent> <child> Text </child> </parent>
is formated as
<parent> <child> Text </child> <child> Text </child> </parent><parent> <child> Text </child> </parent>
it even becomes worse with empty root elements
<foo /> <bar /> <fizz /> <buzz />
becomes <foo /><bar /><fizz /><buzz />
<foo /><bar /><fizz /><buzz />
The text was updated successfully, but these errors were encountered:
I agree. Is there any chance to have some contribution?
Sorry, something went wrong.
The https://github.com/redhat-developer/vscode-xml/blob/main/docs/Formatting.md#xmlformatexperimental should fix this issue, here the format result:
And for teh scond, it keep like this:
@JessicaJHee could you write 2 tests with those usecases please.
JessicaJHee
Successfully merging a pull request may close this issue.
The formatter does not include an new line if there are multiple root elements. I think its inconsistent because it does add them for nested elements.
is formated as
it even becomes worse with empty root elements
becomes
<foo /><bar /><fizz /><buzz />
The text was updated successfully, but these errors were encountered: