diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-07-27 11:46:04 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-07-27 11:46:04 +0800 |
commit | 4a74951e81c9b0c64b0ce9319e325a1f67c621c6 (patch) | |
tree | 977168a14de9e8113435187a15e31b0f50acd868 /xmlStyles.go | |
parent | 8493fea373bef159998023a7ac42740b115bd866 (diff) |
- Support set custom number format, relate issue #86;
- go test and godoc updated
Diffstat (limited to 'xmlStyles.go')
-rw-r--r-- | xmlStyles.go | 11 |
1 files changed, 6 insertions, 5 deletions
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"` } |