summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorrentiansheng <rentiansheng@163.com>2018-09-01 19:38:30 +0800
committerrentiansheng <rentiansheng@163.com>2018-09-01 19:38:30 +0800
commit24a8d64f939afb5c15b04e552b3d3b7046daa851 (patch)
treef6e84297e8e9cac027c4e0da91c39076c83948e1 /xmlWorksheet.go
parent054885219000f5c94c59fdf989e7c2110a023164 (diff)
add datavalidation test and fixed struct bug issue #240
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index f2ac9fb..25e3904 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -18,7 +18,7 @@ type xlsxWorksheet struct {
MergeCells *xlsxMergeCells `xml:"mergeCells"`
PhoneticPr *xlsxPhoneticPr `xml:"phoneticPr"`
ConditionalFormatting []*xlsxConditionalFormatting `xml:"conditionalFormatting"`
- DataValidations *xlsxDataValidations `xml:"dataValidations"`
+ DataValidations *xlsxDataValidations `xml:"dataValidations,omitempty"`
Hyperlinks *xlsxHyperlinks `xml:"hyperlinks"`
PrintOptions *xlsxPrintOptions `xml:"printOptions"`
PageMargins *xlsxPageMargins `xml:"pageMargins"`
@@ -298,7 +298,7 @@ type xlsxDataValidations struct {
DisablePrompts bool `xml:"disablePrompts,attr,omitempty"`
XWindow int `xml:"xWindow,attr,omitempty"`
YWindow int `xml:"yWindow,attr,omitempty"`
- DataValidation []*DataValidation `xml:"dataValidation,innerxml"`
+ DataValidation []*DataValidation `xml:"dataValidation"`
}
type DataValidation struct {