Skip to content

XML/HTML: place several children on separate lines when splitting #147

@kiryph

Description

@kiryph

Example xml file:

<graph id="G" edgedefault="undirected">
    <edge id="e6" source="n5" target="n4"> <data key="d1">1.1</data> <data key="d2">1.1</data> </edge>
</graph>

Place cursor on second line and press gS.

Expected output

<graph id="G" edgedefault="undirected">
    <edge id="e6" source="n5" target="n4">
        <data key="d1">1.1</data>
        <data key="d2">1.1</data> 
    </edge>
</graph>

Current Output:

<graph id="G" edgedefault="undirected">
    <edge id="e6" source="n5" target="n4">
        <data key="d1">1.1</data> <data key="d2">1.1</data> 
    </edge>
</graph>

The other direction works. But I would like to have a space between all tags:

Expected Output on Join:

<graph id="G" edgedefault="undirected">
    <edge id="e6" source="n5" target="n4"><data key="d1">1.1</data> <data key="d2">1.1</data></edge>
</graph>

Current Output on Join:

<graph id="G" edgedefault="undirected">
    <edge id="e6" source="n5" target="n4"><data key="d1">1.1</data> <data key="d2">1.1</data></edge>
</graph>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions