mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 10:04:43 +08:00
XML Decoder: Fixed processing comments in empty XML #1446
This commit is contained in:
@@ -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>",
|
||||
|
||||
Reference in New Issue
Block a user