diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index 45666e7..a53a598 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -80,6 +80,10 @@ describe("V2XmlFormatter", () => { testFormatter(xmlFormatter, options, "issue-189"); }); + it("should not add extra line breaks before closing tags", () => { + testFormatter(xmlFormatter, options, "issue-193"); + }); + }); }); diff --git a/src/test/test-data/issue-193.formatted.xml b/src/test/test-data/issue-193.formatted.xml new file mode 100644 index 0000000..18b4d70 --- /dev/null +++ b/src/test/test-data/issue-193.formatted.xml @@ -0,0 +1,12 @@ + +
+ +
+
\ No newline at end of file diff --git a/src/test/test-data/issue-193.unformatted.xml b/src/test/test-data/issue-193.unformatted.xml new file mode 100644 index 0000000..e157813 --- /dev/null +++ b/src/test/test-data/issue-193.unformatted.xml @@ -0,0 +1,12 @@ + +
+ +
+
\ No newline at end of file