From 4897276c68474c5a3e16ac4e07fae55738c66eca Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 5 Jul 2019 23:15:39 +0800 Subject: [PATCH] Make fitToHeight tag omit empty --- xmlWorksheet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`