From 90bdd3632f16244583525e580fa3edd42361db68 Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 18 Oct 2018 10:23:08 +0800 Subject: Fix the issue caused by missing tradition to strict conversion for `sharedStringsReader()`, relate issue #276 --- comment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comment.go') diff --git a/comment.go b/comment.go index 2bfd785..9031aad 100644 --- a/comment.go +++ b/comment.go @@ -182,7 +182,7 @@ func (f *File) addDrawingVML(commentID int, drawingVML, cell string, lineCount, c, ok := f.XLSX[drawingVML] if ok { d := decodeVmlDrawing{} - _ = xml.Unmarshal([]byte(c), &d) + _ = xml.Unmarshal(namespaceStrictToTransitional(c), &d) for _, v := range d.Shape { s := xlsxShape{ ID: "_x0000_s1025", @@ -252,7 +252,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) { c, ok := f.XLSX[commentsXML] if ok { d := xlsxComments{} - _ = xml.Unmarshal([]byte(c), &d) + _ = xml.Unmarshal(namespaceStrictToTransitional(c), &d) comments.CommentList.Comment = append(comments.CommentList.Comment, d.CommentList.Comment...) } comments.CommentList.Comment = append(comments.CommentList.Comment, cmt) -- cgit v1.2.1