Visitar URL original
Beautifier adds unexpected text when used on xml file · Issue #627 · prettydiff/prettydiff · GitHub
Skip to content

Beautifier adds unexpected text when used on xml file #627

Open

Description

@Moghi

I use prettydiff as a beautifier as part of atom-beautifier. I recently encountered an odd behavior and was able to boil it down to the following minimal example:

This xml

<module name="foo" ver="1.0">
  <encodingRules null=" "/>
<type name="Header" len="3"></type>

is "beautified" to

<module name="foo" ver="1.0">
  <encodingRules null=" "/>
<type name=" Header" len=" 3"="3""></type>

Problem: The values now have a leading space-char and len got an extra ="3"" .
As soon as null=" " is removed, the beautifier works.

Since this did not happen with some other beautifiers I thought it might be worth a mention.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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