diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts
index a53a598..c09df83 100644
--- a/src/test/extension.test.ts
+++ b/src/test/extension.test.ts
@@ -84,6 +84,10 @@ describe("V2XmlFormatter", () => {
testFormatter(xmlFormatter, options, "issue-193");
});
+ it("should not add extra whitespace before CDATA", () => {
+ testFormatter(xmlFormatter, options, "issue-194");
+ });
+
});
});
diff --git a/src/test/test-data/issue-194.formatted.xml b/src/test/test-data/issue-194.formatted.xml
new file mode 100644
index 0000000..fb6e5a3
--- /dev/null
+++ b/src/test/test-data/issue-194.formatted.xml
@@ -0,0 +1,7 @@
+
+
+
+ This is ok
+
+
+
\ No newline at end of file
diff --git a/src/test/test-data/issue-194.unformatted.xml b/src/test/test-data/issue-194.unformatted.xml
new file mode 100644
index 0000000..7700a30
--- /dev/null
+++ b/src/test/test-data/issue-194.unformatted.xml
@@ -0,0 +1 @@
+This is ok
\ No newline at end of file