Skip to content

document formatter inserts unnecessary whitespaces #139

@SchabaJo

Description

@SchabaJo

Hello!

Formatting an XSLT document (others not tested) results in otherwise empty lines filled with spaces to reach target indentation level.
Here is an example, select text to view differences:

Before:

<book>
    <author>
        <firstname>John</firstname>

        <lastname>Doe</lastname>
    </author>
</book>

After:

<book>
    <author>
        <firstname>John</firstname>
        
        <lastname>Doe</lastname>
    </author>
</book>

Version information:

  • VS Code
    • Version: 1.91.1 (user setup)
    • Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
    • Datum: 2024-07-09T22:06:49.809Z
    • Electron: 29.4.0
    • ElectronBuildId: 9728852
    • Chromium: 122.0.6261.156
    • Node.js: 20.9.0
    • V8: 12.2.281.27-electron.0
    • Operating system: Windows_NT x64 10.0.19045
  • Extension: deltaxml.xslt-xpath v1.5.15

Best regards,
Josef

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions