From c922c32fb7571d3d40d3244e5635142bc390a3db Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 18 Jul 2020 15:15:16 +0800 Subject: support parse and generate XML element namespace dynamic, fix #651 --- styles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'styles.go') diff --git a/styles.go b/styles.go index 2ae1cd8..d7b1460 100644 --- a/styles.go +++ b/styles.go @@ -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)) } } -- cgit v1.2.1