Open bbpennel opened 11 years ago
An issue I'm having is that when a tag contains a namespace it causes the closing tag of the element to drop to a new line and indent, which adds additional whitespace into the text.
vkbeautify.xml('<root><child xmlns="ns">Text</child></root>');
Produces:
<root> <child xmlns="ns">Text </child> </root>
This pull request prevents that newline and indent from being added to elements when they have namespaces.
<root> <child xmlns="ns">test</child> </root>
Indentation should still be working correctly for elements nested in elements with namespaces.
vkbeautify.xml('<root><child xmlns="ns"><test></test></child></root>');
<root> <child xmlns="ns"> <test></test> </child> </root>
And thanks for making this great tool!
good job, thx a lot! :+1:
Good job! :+1:
Is this fix supposed to be approved? There is the same issue in the latest version: 0.99.3
An issue I'm having is that when a tag contains a namespace it causes the closing tag of the element to drop to a new line and indent, which adds additional whitespace into the text.
Produces:
This pull request prevents that newline and indent from being added to elements when they have namespaces.
Indentation should still be working correctly for elements nested in elements with namespaces.
Produces:
And thanks for making this great tool!