summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
Diffstat (limited to 'excelize.go')
-rw-r--r--excelize.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/excelize.go b/excelize.go
index 86e2d99..af076fb 100644
--- a/excelize.go
+++ b/excelize.go
@@ -183,15 +183,6 @@ func replaceWorkSheetsRelationshipsNameSpace(workbookMarshal string) string {
oldXmlns := `<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">`
newXmlns := `<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">`
workbookMarshal = strings.Replace(workbookMarshal, oldXmlns, newXmlns, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></tablePart>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></dimension>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></selection>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></sheetFormatPr>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></printOptions>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></pageSetup>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></pageMargins>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></mergeCell>`, ` />`, -1)
- workbookMarshal = strings.Replace(workbookMarshal, `></drawing>`, ` />`, -1)
return workbookMarshal
}