summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'comment.go')
-rw-r--r--comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/comment.go b/comment.go
index c0dc33b..f3b3642 100644
--- a/comment.go
+++ b/comment.go
@@ -256,7 +256,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) {
if comments == nil {
comments = &xlsxComments{Authors: xlsxAuthor{Author: []string{formatSet.Author}}}
}
- if inStrSlice(comments.Authors.Author, formatSet.Author) == -1 {
+ if inStrSlice(comments.Authors.Author, formatSet.Author, true) == -1 {
comments.Authors.Author = append(comments.Authors.Author, formatSet.Author)
authorID = len(comments.Authors.Author) - 1
}