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: closing bracked on newline fails with inner text #1649

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

Format: closing bracked on newline fails with inner text #1649

utenma opened this issue Jun 18, 2024 · 0 comments

Comments

@utenma
Copy link

utenma commented Jun 18, 2024

If a xml tag has plain text inside, the closing bracket is inlined instead of setting it on a new line

Current format

<text x="50%"
      y="50%"
      font-size="60"
      > SVG </text>  <!-- Should be newline -->

Desired format

<text x="50%"
      y="50%"
      font-size="60"
      > 
      SVG 
</text>

settings xml.format.closingBracketNewLine is already enabled

{
    "editor.linkedEditing": true,
    "[xml]": {
        "editor.defaultFormatter": "redhat.vscode-xml",
        "editor.tabSize": 2,
        "files.trimTrailingWhitespace": true,
        "files.trimFinalNewlines": true
    },
    "xml.format.preserveEmptyContent": true,
    "xml.format.emptyElements": "collapse",
    "xml.format.splitAttributes": "alignWithFirstAttr",
    "xml.completion.autoCloseTags": true,
    "xml.format.spaceBeforeEmptyCloseTag": true,
    "xml.format.closingBracketNewLine": true,
    "xml.preferences.quoteStyle": "double",
    "xml.fileAssociations": [
        {
            "pattern": "**/*.xml.svg",
            "systemId": ".vscode/svg11-flat-20110816.dtd"
        }
    ],
    "html.autoClosingTags": true,
}
@utenma utenma changed the title Format help: closing bracked on newline Format: closing bracked on newline fails with inner text Jun 18, 2024
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

1 participant