Skip to content

Conversation

juxe
Copy link
Contributor

@juxe juxe commented Aug 15, 2018

Purpose / Goal

I would like to fix a bug that I encountered when parsing json to xml with the format option flag set to true. If the JSON doc specifies nodes with an attr string and text value, an extra newline is added between the > of the open tag and the node text value, and extra whitespace is added to the end of the text value equal to n * level (where n is the number of spaces in indentBy, default 2).

#104

Type

Please mention the type of PR

[X]Bug Fix
[ ]Refactoring / Technology upgrade
[ ]New Feature

Note : Please ensure that you've read contribution guidelines before raising this PR.

@amitguptagwl
Copy link
Member

Thanks for your PR. will you mind to add a test for that?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.5% when pulling 787cf93 on juxe:fix-attr-format into 6f752f5 on NaturalIntelligence:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.5% when pulling 787cf93 on juxe:fix-attr-format into 6f752f5 on NaturalIntelligence:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.5% when pulling 787cf93 on juxe:fix-attr-format into 6f752f5 on NaturalIntelligence:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.5% when pulling 787cf93 on juxe:fix-attr-format into 6f752f5 on NaturalIntelligence:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.5% when pulling 787cf93 on juxe:fix-attr-format into 6f752f5 on NaturalIntelligence:master.

@coveralls
Copy link

coveralls commented Aug 16, 2018

Coverage Status

Coverage increased (+0.01%) to 97.487% when pulling 3356248 on juxe:fix-attr-format into 6f752f5 on NaturalIntelligence:master.

@juxe
Copy link
Contributor Author

juxe commented Aug 16, 2018

ok, so I updated one of the current tests that was very similar to what I was writing, and it is working and passing tests now, but I'm hitting a block getting codeclimate to accept it. I'm sure there's a way to refactor it a bit for codeclimate to pass, but I'm not seeing it at the moment

@amitguptagwl amitguptagwl merged commit 1617d1f into NaturalIntelligence:master Aug 16, 2018
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

Successfully merging this pull request may close these issues.

4 participants