summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-02-13 00:06:30 +0800
committerxuri <xuri.me@gmail.com>2022-02-13 00:06:30 +0800
commit4b64b26c52932a51ca97a2bb6bf372a07020e52b (patch)
tree0d5b88ab9db7b459de73e65b022871ef69fe2cd6 /comment.go
parent3f8f4f52e68d408da5a2e5108af3cc99bf8586bc (diff)
Ref: #660, #764, #1093, #1112, #1133 This improve number format support
- Introduced NFP (number format parser) dependencies module - Initialize custom dates and times number format support - Dependencies module upgraded
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
}