From 1f73f08185e664d6914c8eb849a9797b26067628 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Mon, 6 Mar 2017 12:05:41 +0800 Subject: - New feature: border setting support (Related issue #21); - Function parameter code is simplified; - Fix element `Tint` value parsing error in worksheet; - Update go test --- xmlWorksheet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmlWorksheet.go') diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 6efb9ea..831bf3d 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -9,7 +9,7 @@ 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"` + SheetViews xlsxSheetViews `xml:"sheetViews,omitempty"` SheetFormatPr *xlsxSheetFormatPr `xml:"sheetFormatPr"` Cols *xlsxCols `xml:"cols,omitempty"` SheetData xlsxSheetData `xml:"sheetData"` @@ -207,8 +207,8 @@ type xlsxPageSetUpPr struct { // xlsxTabColor directly maps the tabColor element in the namespace currently I // have not checked it for completeness - it does as much as I need. type xlsxTabColor struct { - Theme int `xml:"theme,attr,omitempty"` - Tint uint8 `xml:"tint,attr,omitempty"` + Theme int `xml:"theme,attr,omitempty"` + Tint float64 `xml:"tint,attr,omitempty"` } // xlsxCols directly maps the cols element in the namespace -- cgit v1.2.1