Skip to content

Autoformat on Save and empty XML-Elements #430

@plutowalker

Description

@plutowalker

Hello,

I think, i've found a little error today when using Autoformat on Saving of a XML-Document with empty XML-Elements in long format (<...></...>) in content. In my option XML Notepad insert not allowed Spaces and line breaks as value between the start-tag and end-tag. Outside of XML-Elements this is allowed and makes no problems but inside of a XML-Element this is problematic and changes the content of this XML-Element.

As exmaple the free texteditor Notepad++ with extension XML Tools works a little bit other. Notepad++ converts such empty XML-Elements in long format (<...></...>) to the correspoding short format (<.../>) without insert additional spaces or line breaks. That behaviour makes no problems and is also allowed in XML.

It would be nice if this point can be checked and corrected because XML Notepad is a great tool for me every day.

Best regards
Plutowalker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions