Skip to content

multiple root elements #634

@florenso

Description

@florenso

The formatter does not include an new line if there are multiple root elements. I think its inconsistent because it does add them for nested elements.

<parent>
    <child>
        Text
    </child>
    <child>
        Text
    </child>
</parent>
<parent>
    <child>
        Text
    </child>
</parent>

is formated as

<parent>
    <child>
        Text
    </child>
    <child>
        Text
    </child>
</parent><parent>
    <child>
        Text
    </child>
</parent>

it even becomes worse with empty root elements

<foo />
<bar />
<fizz />
<buzz />

becomes
<foo /><bar /><fizz /><buzz />

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions