parent
be30a5671b
commit
b65009728c
@ -55,6 +55,10 @@ describe("V2XmlFormatter", () => {
|
||||
testFormatter(xmlFormatter, options, "single-quotes");
|
||||
});
|
||||
|
||||
it("should not add extra line breaks before start tags", () => {
|
||||
testFormatter(xmlFormatter, options, "issue-178");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
9
src/test/test-data/issue-178.formatted.xml
Normal file
9
src/test/test-data/issue-178.formatted.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<root>
|
||||
<entry>
|
||||
<field1>One</field1>
|
||||
<field2/>
|
||||
<field3>Three</field3>
|
||||
<field4/>
|
||||
<field5>Five</field5>
|
||||
</entry>
|
||||
</root>
|
1
src/test/test-data/issue-178.unformatted.xml
Normal file
1
src/test/test-data/issue-178.unformatted.xml
Normal file
@ -0,0 +1 @@
|
||||
<root><entry><field1>One</field1><field2/><field3>Three</field3><field4/><field5>Five</field5></entry></root>
|
Loading…
Reference in New Issue
Block a user