From 7e429c5b464b53f305e94cc355f14ba9e1d9849c Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 30 Apr 2021 00:14:42 +0800 Subject: Fixe issue generated file corrupted caused by incorrect default XML namespace attributes --- xmlStyles.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'xmlStyles.go') diff --git a/xmlStyles.go b/xmlStyles.go index 46604dc..92e4e6a 100644 --- a/xmlStyles.go +++ b/xmlStyles.go @@ -83,13 +83,13 @@ type xlsxFonts struct { // xlsxFont directly maps the font element. This element defines the // properties for one of the fonts used in this workbook. type xlsxFont struct { - B *bool `xml:"b,omitempty"` - I *bool `xml:"i,omitempty"` - Strike *bool `xml:"strike,omitempty"` - Outline *bool `xml:"outline,omitempty"` - Shadow *bool `xml:"shadow,omitempty"` - Condense *bool `xml:"condense,omitempty"` - Extend *bool `xml:"extend,omitempty"` + B *attrValBool `xml:"b,omitempty"` + I *attrValBool `xml:"i,omitempty"` + Strike *attrValBool `xml:"strike,omitempty"` + Outline *attrValBool `xml:"outline,omitempty"` + Shadow *attrValBool `xml:"shadow,omitempty"` + Condense *attrValBool `xml:"condense,omitempty"` + Extend *attrValBool `xml:"extend,omitempty"` U *attrValString `xml:"u"` Sz *attrValFloat `xml:"sz"` Color *xlsxColor `xml:"color"` -- cgit v1.2.1