parent
97afac0031
commit
9a2147683c
@ -84,6 +84,10 @@ describe("V2XmlFormatter", () => {
|
|||||||
testFormatter(xmlFormatter, options, "issue-193");
|
testFormatter(xmlFormatter, options, "issue-193");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should not add extra whitespace before CDATA", () => {
|
||||||
|
testFormatter(xmlFormatter, options, "issue-194");
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
7
src/test/test-data/issue-194.formatted.xml
Normal file
7
src/test/test-data/issue-194.formatted.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<madeup>
|
||||||
|
<some>
|
||||||
|
<element>This is ok</element>
|
||||||
|
<other><![CDATA[Here is my cdata]]></other>
|
||||||
|
</some>
|
||||||
|
</madeup>
|
1
src/test/test-data/issue-194.unformatted.xml
Normal file
1
src/test/test-data/issue-194.unformatted.xml
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?><madeup><some><element>This is ok</element><other><![CDATA[Here is my cdata]]></other></some></madeup>
|
Loading…
Reference in New Issue
Block a user