From a13ef5545ec79108477910346ae4cab82ab8bbda Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 27 Apr 2021 04:46:51 +0000 Subject: This closes #825, closes #829, closes #830, fix issue when get and add comments on multi authors --- xmlComments.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmlComments.go') diff --git a/xmlComments.go b/xmlComments.go index e39fb24..7965c86 100644 --- a/xmlComments.go +++ b/xmlComments.go @@ -24,7 +24,7 @@ import "encoding/xml" // something special about the cell. type xlsxComments struct { XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main comments"` - Authors []xlsxAuthor `xml:"authors"` + Authors xlsxAuthor `xml:"authors"` CommentList xlsxCommentList `xml:"commentList"` } @@ -33,7 +33,7 @@ type xlsxComments struct { // have an author. The maximum length of the author string is an implementation // detail, but a good guideline is 255 chars. type xlsxAuthor struct { - Author string `xml:"author"` + Author []string `xml:"author"` } // xlsxCommentList (List of Comments) directly maps the xlsxCommentList element. -- cgit v1.2.1