DeanRoddey/CIDLib

XMLFormat pretty mode improper quote escaping

llblumer opened this issue · 0 comments

XMLFormat pretty mode corrupts a Microsoft Open XML file/Excel 2015 styles file.

Attached is a test file before and after pretty formatting.

Excel error generated:

Removed Part: /xl/styles.xml part with XML error. (Styles) Whitespace expected. Line 4, column 43.

Before section:

<numFmt numFmtId="164" formatCode="&quot;$&quot;#,##0.00"/>

After section:

<numFmt numFmtId="164" formatCode=""$"#,##0.00"/>

styles_after.txt
styles_before.txt