summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-03-06 12:05:41 +0800
committerRi Xu <xuri.me@gmail.com>2017-03-06 12:05:41 +0800
commit1f73f08185e664d6914c8eb849a9797b26067628 (patch)
tree71ebce585a03f13e5b68c96a12d0aa06a7756a2c /xmlWorksheet.go
parent48722e6482d97e742755002061bf1c7b042bfb44 (diff)
- New feature: border setting support (Related issue #21);
- Function parameter code is simplified; - Fix element `Tint` value parsing error in worksheet; - Update go test
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go6
1 files changed, 3 insertions, 3 deletions
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