summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-12-16 08:32:04 +0800
committerxuri <xuri.me@gmail.com>2019-12-16 08:32:04 +0800
commita526e90404913f5d649d29a7aeee29f5ac9ff590 (patch)
tree6f502897cf2083935d6e8842a06146de303e7c98 /xmlWorksheet.go
parent3763228ea7c37e18633ada493a63a6a8722e508c (diff)
Fix #426, handle empty workbook view
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index 9a478e1..b785eac 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -17,10 +17,10 @@ import "encoding/xml"
type xlsxWorksheet struct {
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
SheetPr *xlsxSheetPr `xml:"sheetPr"`
- Dimension xlsxDimension `xml:"dimension"`
- SheetViews xlsxSheetViews `xml:"sheetViews,omitempty"`
+ Dimension *xlsxDimension `xml:"dimension"`
+ SheetViews xlsxSheetViews `xml:"sheetViews"`
SheetFormatPr *xlsxSheetFormatPr `xml:"sheetFormatPr"`
- Cols *xlsxCols `xml:"cols,omitempty"`
+ Cols *xlsxCols `xml:"cols"`
SheetData xlsxSheetData `xml:"sheetData"`
SheetCalcPr *xlsxInnerXML `xml:"sheetCalcPr"`
SheetProtection *xlsxSheetProtection `xml:"sheetProtection"`
@@ -33,7 +33,7 @@ type xlsxWorksheet struct {
MergeCells *xlsxMergeCells `xml:"mergeCells"`
PhoneticPr *xlsxPhoneticPr `xml:"phoneticPr"`
ConditionalFormatting []*xlsxConditionalFormatting `xml:"conditionalFormatting"`
- DataValidations *xlsxDataValidations `xml:"dataValidations,omitempty"`
+ DataValidations *xlsxDataValidations `xml:"dataValidations"`
Hyperlinks *xlsxHyperlinks `xml:"hyperlinks"`
PrintOptions *xlsxPrintOptions `xml:"printOptions"`
PageMargins *xlsxPageMargins `xml:"pageMargins"`