Maintain Comment Formatting

#118
This commit is contained in:
Josh Johnson 2018-02-13 22:52:19 -05:00
parent ea5416b506
commit 2c6a5ceaa0
4 changed files with 80 additions and 1 deletions

View file

@ -48,6 +48,10 @@ describe("V2XmlFormatter", () => {
testFormatter(xmlFormatter, options, "preserve-breaks");
});
it("should maintain comment formatting", () => {
testFormatter(xmlFormatter, options, "maintain-comment-formatting");
});
});
});

View file

@ -0,0 +1,13 @@
<root>
<element>text</element>
<!--
<Description>
Any description.
</Description>
<Keyword UUID="fd8e6b13-9865-4d8c-9ecd-5ff08a0cf2e2"/>
<Parameters>
<Parameter Name="ParameterName1">The Parameter Name.</Parameter>
<Parameter Name="ParameterName2" PossibleValues="Val1,Val2" DefaultValue="Val1"/>
</Parameters>
-->
</root>

View file

@ -0,0 +1,13 @@
<root>
<element>text</element>
<!--
<Description>
Any description.
</Description>
<Keyword UUID="fd8e6b13-9865-4d8c-9ecd-5ff08a0cf2e2"/>
<Parameters>
<Parameter Name="ParameterName1">The Parameter Name.</Parameter>
<Parameter Name="ParameterName2" PossibleValues="Val1,Val2" DefaultValue="Val1"/>
</Parameters>
-->
</root>