From 4a74951e81c9b0c64b0ce9319e325a1f67c621c6 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Thu, 27 Jul 2017 11:46:04 +0800 Subject: - Support set custom number format, relate issue #86; - go test and godoc updated --- xmlStyles.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'xmlStyles.go') diff --git a/xmlStyles.go b/xmlStyles.go index 2ddcac0..e8aaef6 100644 --- a/xmlStyles.go +++ b/xmlStyles.go @@ -302,7 +302,7 @@ type formatFont struct { Color string `json:"color"` } -// formatCellStyle directly maps the styles settings of the borders. +// formatCellStyle directly maps the styles settings of the cells. type formatCellStyle struct { Border []struct { Type string `json:"type"` @@ -327,8 +327,9 @@ type formatCellStyle struct { Vertical string `json:"vertical"` WrapText bool `json:"wrap_text"` } `json:"alignment"` - NumFmt int `json:"number_format"` - DecimalPlaces int `json:"decimal_places"` - Lang string `json:"lang"` - NegRed bool `json:"negred"` + NumFmt int `json:"number_format"` + DecimalPlaces int `json:"decimal_places"` + CustomNumFmt *string `json:"custom_number_format"` + Lang string `json:"lang"` + NegRed bool `json:"negred"` } -- cgit v1.2.1