Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beautifier adds unexpected text when used on xml file #627

Open
Moghi opened this issue Dec 4, 2019 · 0 comments
Open

Beautifier adds unexpected text when used on xml file #627

Moghi opened this issue Dec 4, 2019 · 0 comments

Comments

@Moghi
Copy link

Moghi commented Dec 4, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant