From 9c14741a6beaab9048d107f2ac47d79416d51c62 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 7 Sep 2016 21:26:58 +0800 Subject: [PATCH] Fix missing show grid lines property and godoc updated. --- excelize.go | 52 ++++++++++++++++++++++++------------------------- xmlWorksheet.go | 4 ++-- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/excelize.go b/excelize.go index 79f7534..258411e 100644 --- a/excelize.go +++ b/excelize.go @@ -162,24 +162,24 @@ func replaceWorkSheetsRelationshipsNameSpace(workbookMarshal string) string { // Check XML tags and fix discontinuous case, for example: // -// -// -// -// -// -// +// +// +// +// +// +// // // in this case, we should to change it to // -// -// -// -// -// -// -// -// -// +// +// +// +// +// +// +// +// +// // // Noteice: this method could be very slow for large spreadsheets (more than 3000 rows one sheet). func checkRow(xlsx xlsxWorksheet) xlsxWorksheet { @@ -223,20 +223,20 @@ func checkRow(xlsx xlsxWorksheet) xlsxWorksheet { // // For example: // -// -// -// SUM(Sheet2!D2,Sheet2!D11) -// 100 -// -// +// +// +// SUM(Sheet2!D2,Sheet2!D11) +// 100 +// +// // // to // -// -// -// SUM(Sheet2!D2,Sheet2!D11) -// -// +// +// +// SUM(Sheet2!D2,Sheet2!D11) +// +// func (f *File) UpdateLinkedValue() { for i := 1; i <= f.SheetCount; i++ { var xlsx xlsxWorksheet diff --git a/xmlWorksheet.go b/xmlWorksheet.go index fb3639d..975e40e 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -131,7 +131,7 @@ type xlsxSheetViews struct { type xlsxSheetView struct { // WindowProtection bool `xml:"windowProtection,attr"` // ShowFormulas bool `xml:"showFormulas,attr"` - // ShowGridLines bool `xml:"showGridLines,attr"` + ShowGridLines string `xml:"showGridLines,attr,omitempty"` // ShowRowColHeaders bool `xml:"showRowColHeaders,attr"` // ShowZeros bool `xml:"showZeros,attr"` // RightToLeft bool `xml:"rightToLeft,attr"` @@ -155,7 +155,7 @@ type xlsxSheetView struct { // as I need. type xlsxSelection struct { Pane string `xml:"pane,attr,omitempty"` - ActiveCell string `xml:"activeCell,attr"` + ActiveCell string `xml:"activeCell,attr,omitempty"` ActiveCellID int `xml:"activeCellId,attr"` SQRef string `xml:"sqref,attr"` }