diff options
| author | Ri Xu <xuri.me@gmail.com> | 2016-12-26 23:55:59 +0800 |
|---|---|---|
| committer | Ri Xu <xuri.me@gmail.com> | 2016-12-26 23:55:59 +0800 |
| commit | f958f05a3bf6f9fdc7f76539d9a3b24f49cc2694 (patch) | |
| tree | 42e8555700d078213547c1287b7756cfbc68ed6b /excelize.go | |
| parent | c5cc500b886366a99641eaa7bc24613f6066fd79 (diff) | |
- Fix issue: sheet protection and conditional formatting proprietary missing after save;
- Update workbook and sheet relationships and self-close tag replacement hack functions
Diffstat (limited to 'excelize.go')
| -rw-r--r-- | excelize.go | 9 |
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 } |
