From e8961f0affd1ce9656a57b24cad4cfd080781556 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 8 May 2018 10:36:13 +0800 Subject: - Bugfix: set font family not works, relate issue #222; - Remove useless function `replaceWorkSheetsRelationshipsNameSpace()`; - Make test cases use strict error checking --- excelize.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'excelize.go') diff --git a/excelize.go b/excelize.go index 31fa370..f2e50c8 100644 --- a/excelize.go +++ b/excelize.go @@ -131,16 +131,9 @@ func checkSheet(xlsx *xlsxWorksheet) { xlsx.SheetData = sheetData } -// replaceWorkSheetsRelationshipsNameSpace provides function to replace +// replaceWorkSheetsRelationshipsNameSpaceBytes provides function to replace // xl/worksheets/sheet%d.xml XML tags to self-closing for compatible Microsoft // Office Excel 2007. -func replaceWorkSheetsRelationshipsNameSpace(workbookMarshal string) string { - oldXmlns := `` - newXmlns := `` - workbookMarshal = strings.Replace(workbookMarshal, oldXmlns, newXmlns, -1) - return workbookMarshal -} - func replaceWorkSheetsRelationshipsNameSpaceBytes(workbookMarshal []byte) []byte { var oldXmlns = []byte(``) var newXmlns = []byte(``) -- cgit v1.2.1