diff options
author | xuri <xuri.me@gmail.com> | 2021-04-30 00:14:42 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-04-30 00:14:42 +0800 |
commit | 7e429c5b464b53f305e94cc355f14ba9e1d9849c (patch) | |
tree | c732503f48464b6303291d2538f80d170c4bc913 /xmlStyles.go | |
parent | af5e87dbcf5a89201072f5ca07d532258ece278f (diff) |
Fixe issue generated file corrupted caused by incorrect default XML namespace attributes
Diffstat (limited to 'xmlStyles.go')
-rw-r--r-- | xmlStyles.go | 14 |
1 files changed, 7 insertions, 7 deletions
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"` |