From 843bd24e56450791ad122a2f3875956a0a70ec6e Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 6 Aug 2020 05:58:40 +0000 Subject: This closes #677 and closes #679, fix panic when enabling compiler inline flags --- sheet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sheet.go') 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) } -- cgit v1.2.1