XML Decoder: Fixed processing comments in empty XML #1446

This commit is contained in:
Mike Farah
2022-11-27 17:58:37 +11:00
parent 68f47c02c8
commit 77998d1bb3
2 changed files with 17 additions and 3 deletions
+5
View File
@@ -249,6 +249,11 @@ var xmlScenarios = []formatScenario{
input: "<root> <!-- comment-->value</root>",
expected: "\n# comment\nroot: value\n", //needs fix
},
{
skipDoc: true,
input: "<root> <!-- comment--></root>",
expected: "root: # comment\n",
},
{
skipDoc: true,
input: "<root>value<!-- comment-->anotherValue </root>",