From 219add2f0e4ae591141330648d410b60f5c0dbcf Mon Sep 17 00:00:00 2001 From: Eagle Xiang Date: Thu, 28 Jan 2021 21:13:23 +0800 Subject: =?UTF-8?q?value=20fields=20xlsxPatternFill.FgColor=20&=20xlsxPatt?= =?UTF-8?q?ernFill.BgColor=20cause=20=E2=80=A6=20(#770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * value fields xlsxPatternFill.FgColor & xlsxPatternFill.BgColor cause ineffective omitempty tags * remove useless omitempty tag on xlsxPatternFill.FgColor and xlsxPatternFill.BgColor --- xmlStyles.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmlStyles.go') diff --git a/xmlStyles.go b/xmlStyles.go index 2884800..db85b15 100644 --- a/xmlStyles.go +++ b/xmlStyles.go @@ -120,9 +120,9 @@ type xlsxFill struct { // For cell fills with patterns specified, then the cell fill color is // specified by the bgColor element. type xlsxPatternFill struct { - PatternType string `xml:"patternType,attr,omitempty"` - FgColor xlsxColor `xml:"fgColor,omitempty"` - BgColor xlsxColor `xml:"bgColor,omitempty"` + PatternType string `xml:"patternType,attr,omitempty"` + FgColor *xlsxColor `xml:"fgColor"` + BgColor *xlsxColor `xml:"bgColor"` } // xlsxGradientFill defines a gradient-style cell fill. Gradient cell fills can -- cgit v1.2.1