diff options
author | xuri <xuri.me@gmail.com> | 2018-10-18 10:23:08 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2018-10-18 10:23:08 +0800 |
commit | 90bdd3632f16244583525e580fa3edd42361db68 (patch) | |
tree | b54f4ebcc38400852390a05f563f06a7fd491a1c /comment.go | |
parent | 1c45425f12f38012b975c36f4d17bd1cec3c0aba (diff) |
Fix the issue caused by missing tradition to strict conversion for `sharedStringsReader()`, relate issue #276
Diffstat (limited to 'comment.go')
-rw-r--r-- | comment.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |