Skip to content

Self closed elements break if they are inside element with the same name #17

@pavelhoral

Description

@pavelhoral

The following formats incorrectly:

var prettyData = require("pretty-data")
console.log(prettyData.pd.xml("<foo><foo/></foo>"));
<foo>
  <foo/></foo>

That should be:

<foo>
  <foo/>
</foo>

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