summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-08-06 05:58:40 +0000
committerxuri <xuri.me@gmail.com>2020-08-06 05:58:40 +0000
commit843bd24e56450791ad122a2f3875956a0a70ec6e (patch)
tree3cd4a116c9867a83894b60349bff1344787d29c1 /sheet.go
parentfcbc7e3f88fd016b62928c89623645758c1291ee (diff)
This closes #677 and closes #679, fix panic when enabling compiler inline flags
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sheet.go b/sheet.go
index 31a36eb..a92221d 100644
--- a/sheet.go
+++ b/sheet.go
@@ -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)
}