summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-10-18 10:23:08 +0800
committerxuri <xuri.me@gmail.com>2018-10-18 10:23:08 +0800
commit90bdd3632f16244583525e580fa3edd42361db68 (patch)
treeb54f4ebcc38400852390a05f563f06a7fd491a1c /comment.go
parent1c45425f12f38012b975c36f4d17bd1cec3c0aba (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.go4
1 files changed, 2 insertions, 2 deletions
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)