diff options
author | xuri <xuri.me@gmail.com> | 2021-04-27 04:46:51 +0000 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-04-27 04:46:51 +0000 |
commit | a13ef5545ec79108477910346ae4cab82ab8bbda (patch) | |
tree | 72c042255c94536c6c868eb5321ee948296a78aa /xmlComments.go | |
parent | e5c5ecc379434b7ef4ffcbb9dcf58526cafda66a (diff) |
This closes #825, closes #829, closes #830, fix issue when get and add comments on multi authors
Diffstat (limited to 'xmlComments.go')
-rw-r--r-- | xmlComments.go | 4 |
1 files changed, 2 insertions, 2 deletions
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. |