From b84bfa7eab84a8e065bd5acedeae3d0ba8dc5f8b Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Fri, 23 Dec 2016 17:47:25 +0800 Subject: - Update maximum 31 characters allowed in sheet title; - Fix issue XML tag `headerFooter` and `sheetPr` element self-close errors cause file corruption; - Fix issue `Section` and `Pane` element order make file corruption in some case; - Change sheet `rId` calculation method in `/xl/workbook.xml`, fix makes file corruption in some case; - Compatibility improved: add `xlsxTabColor` struct and some XML element for worksheet --- xmlWorkbook.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmlWorkbook.go') diff --git a/xmlWorkbook.go b/xmlWorkbook.go index 1f355c7..b5c6879 100644 --- a/xmlWorkbook.go +++ b/xmlWorkbook.go @@ -74,7 +74,8 @@ type xlsxWorkbookPr struct { DefaultThemeVersion string `xml:"defaultThemeVersion,attr,omitempty"` BackupFile bool `xml:"backupFile,attr,omitempty"` ShowObjects string `xml:"showObjects,attr,omitempty"` - Date1904 bool `xml:"date1904,attr"` + Date1904 bool `xml:"date1904,attr,omitempty"` + CodeName string `xml:"codeName,attr,omitempty"` } // xlsxBookViews directly maps the bookViews element from the -- cgit v1.2.1