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: prevent text only content to be inlined with closing tag #1012

Open
utenma opened this issue Jun 18, 2024 · 3 comments
Open

Format: prevent text only content to be inlined with closing tag #1012

utenma opened this issue Jun 18, 2024 · 3 comments

Comments

@utenma
Copy link

utenma commented Jun 18, 2024

A way to prevent formatting this

<text x="50%"
      y="50%"
      font-size="60"
      text-anchor="middle"
      dominant-baseline="middle"
      fill="white">
      SVG 
</text>

To become

      <text x="50%"
            y="50%"
            font-size="60"
            text-anchor="middle"
            dominant-baseline="middle"
            fill="white"> SVG </text>
Grabacion.de.pantalla.desde.2024-06-17.19-53-18.webm
@angelozerr
Copy link
Contributor

angelozerr commented Jun 19, 2024

To be honnest with you, I don't remember the full features of our XML formatter, have you tried settings defined at https://github.com/redhat-developer/vscode-xml/blob/main/docs/Formatting.md?

@angelozerr
Copy link
Contributor

@utenma
Copy link
Author

utenma commented Jun 26, 2024

The issue is xml.format.closingBracketNewLine could not prevent inline text content work with any other setting as long that one is enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants