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

Format is wrong with multiple line content #600

Closed
Tacha-S opened this issue Oct 4, 2021 · 2 comments · Fixed by eclipse-lemminx/lemminx#1299
Closed

Format is wrong with multiple line content #600

Tacha-S opened this issue Oct 4, 2021 · 2 comments · Fixed by eclipse-lemminx/lemminx#1299
Assignees
Labels
bug Something isn't working formatting
Milestone

Comments

@Tacha-S
Copy link

Tacha-S commented Oct 4, 2021

Indent of close tag for multiple line content is wrong.

The XML file for example as shown below.

<a>
  <b>
    foo
    bar
  </b>
</a>

Format the XML file with this plugin.

<a>
  <b>
    foo
    bar
</b>
</a>

Is this correct behavior?

@angelozerr angelozerr added bug Something isn't working formatting labels Dec 8, 2021
@angelozerr
Copy link
Contributor

Is this correct behavior?

No our XML formatter must be improved.

@angelozerr
Copy link
Contributor

The https://github.com/redhat-developer/vscode-xml/blob/main/docs/Formatting.md#xmlformatexperimental should fix this issue. Here the result:

<a>
	<b> foo bar </b>
</a>

@JessicaJHee could you write a test with this usecase please.

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