parent
4640c6c44c
commit
5a90a0c121
@ -68,6 +68,10 @@ describe("V2XmlFormatter", () => {
|
|||||||
options.enforcePrettySelfClosingTagOnFormat = false;
|
options.enforcePrettySelfClosingTagOnFormat = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should properly format closing tag after self-closing tag", () => {
|
||||||
|
testFormatter(xmlFormatter, options, "issue-185");
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
5
src/test/test-data/issue-185.formatted.xml
Normal file
5
src/test/test-data/issue-185.formatted.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<test>
|
||||||
|
<example>
|
||||||
|
<one/>
|
||||||
|
</example>
|
||||||
|
</test>
|
1
src/test/test-data/issue-185.unformatted.xml
Normal file
1
src/test/test-data/issue-185.unformatted.xml
Normal file
@ -0,0 +1 @@
|
|||||||
|
<test><example><one/></example></test>
|
Loading…
Reference in New Issue
Block a user