summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-07-05 23:15:39 +0800
committerGitHub <noreply@github.com>2019-07-05 23:15:39 +0800
commit4897276c68474c5a3e16ac4e07fae55738c66eca (patch)
tree94473499568367e62b1bb6a04ff4be01220eb7b9 /xmlWorksheet.go
parente780aa27c8037fadbc4a7c08466b52d0f4ac268a (diff)
Make fitToHeight tag omit empty
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index 4d19cde..b94c521 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -90,7 +90,7 @@ type xlsxPageSetUp struct {
Draft bool `xml:"draft,attr,omitempty"`
Errors string `xml:"errors,attr,omitempty"`
FirstPageNumber int `xml:"firstPageNumber,attr,omitempty"`
- FitToHeight *int `xml:"fitToHeight,attr"`
+ FitToHeight int `xml:"fitToHeight,attr,omitempty"`
FitToWidth int `xml:"fitToWidth,attr,omitempty"`
HorizontalDPI float32 `xml:"horizontalDpi,attr,omitempty"`
RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`