diff options
author | xuri <xuri.me@gmail.com> | 2020-07-18 15:15:16 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-07-18 15:15:16 +0800 |
commit | c922c32fb7571d3d40d3244e5635142bc390a3db (patch) | |
tree | 12c2a1541458963caca5f7714d7861c42637d4c6 /styles.go | |
parent | 820a314cfbcaa4d32401b0b6c67bf65f064483ec (diff) |
support parse and generate XML element namespace dynamic, fix #651
Diffstat (limited to 'styles.go')
-rw-r--r-- | styles.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1022,7 +1022,7 @@ func (f *File) stylesReader() *xlsxStyleSheet { func (f *File) styleSheetWriter() { if f.Styles != nil { output, _ := xml.Marshal(f.Styles) - f.saveFileList("xl/styles.xml", replaceRelationshipsNameSpaceBytes(output)) + f.saveFileList("xl/styles.xml", f.replaceNameSpaceBytes("xl/styles.xml", output)) } } @@ -1031,7 +1031,7 @@ func (f *File) styleSheetWriter() { func (f *File) sharedStringsWriter() { if f.SharedStrings != nil { output, _ := xml.Marshal(f.SharedStrings) - f.saveFileList("xl/sharedStrings.xml", replaceRelationshipsNameSpaceBytes(output)) + f.saveFileList("xl/sharedStrings.xml", f.replaceNameSpaceBytes("xl/sharedStrings.xml", output)) } } |