summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-11-16 00:40:44 +0800
committerxuri <xuri.me@gmail.com>2021-11-16 00:40:44 +0800
commitbda8e7f8129dae0064c47f8e051f76492e1128f5 (patch)
treef920fccbda3059acdf0c0cb66ebb875161a32576 /comment.go
parent72410361b07e7539037252467a38a73b32986dce (diff)
This closes #1061, support multi-byte language on set header footer
typo fixed and simplify code for read the data values arguments of formula functions
Diffstat (limited to 'comment.go')
-rw-r--r--comment.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/comment.go b/comment.go
index a89d2bb..07cd9f2 100644
--- a/comment.go
+++ b/comment.go
@@ -245,11 +245,11 @@ func (f *File) addDrawingVML(commentID int, drawingVML, cell string, lineCount,
func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) {
a := formatSet.Author
t := formatSet.Text
- if len(a) > 255 {
- a = a[0:255]
+ if len(a) > MaxFieldLength {
+ a = a[:MaxFieldLength]
}
if len(t) > 32512 {
- t = t[0:32512]
+ t = t[:32512]
}
comments := f.commentsReader(commentsXML)
authorID := 0