diff options
author | xuri <xuri.me@gmail.com> | 2020-08-06 05:58:40 +0000 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-08-06 05:58:40 +0000 |
commit | 843bd24e56450791ad122a2f3875956a0a70ec6e (patch) | |
tree | 3cd4a116c9867a83894b60349bff1344787d29c1 /sheet.go | |
parent | fcbc7e3f88fd016b62928c89623645758c1291ee (diff) |
This closes #677 and closes #679, fix panic when enabling compiler inline flags
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -213,8 +213,8 @@ func (f *File) setAppXML() { // strict requirements about the structure of the input XML. This function is // a horrible hack to fix that after the XML marshalling is completed. func replaceRelationshipsBytes(content []byte) []byte { - oldXmlns := stringToBytes(`xmlns:relationships="http://schemas.openxmlformats.org/officeDocument/2006/relationships" relationships`) - newXmlns := stringToBytes("r") + oldXmlns := []byte(`xmlns:relationships="http://schemas.openxmlformats.org/officeDocument/2006/relationships" relationships`) + newXmlns := []byte("r") return bytesReplace(content, oldXmlns, newXmlns, -1) } |