parent
6a92fa96f2
commit
07b47c4748
@ -59,6 +59,10 @@ describe("V2XmlFormatter", () => {
|
||||
testFormatter(xmlFormatter, options, "issue-178");
|
||||
});
|
||||
|
||||
it("should allow users to enforce space before self-closing tag slash", () => {
|
||||
testFormatter(xmlFormatter, options, "issue-149");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
9
src/test/test-data/issue-149.formatted.xml
Normal file
9
src/test/test-data/issue-149.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-149.unformatted.xml
Normal file
1
src/test/test-data/issue-149.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