From db2d084ada1a08a48967506b2f1852062168deec Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 2 Nov 2022 08:42:00 +0800 Subject: This closes #1204, breaking changes for add comments - Allowing insert SVG format images - Unit tests updated --- xmlComments.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'xmlComments.go') diff --git a/xmlComments.go b/xmlComments.go index 731f416..7b67e67 100644 --- a/xmlComments.go +++ b/xmlComments.go @@ -72,16 +72,11 @@ type xlsxPhoneticRun struct { T string `xml:"t"` } -// commentOptions directly maps the format settings of the comment. -type commentOptions struct { - Author string `json:"author"` - Text string `json:"text"` -} - // Comment directly maps the comment information. type Comment struct { - Author string `json:"author"` - AuthorID int `json:"author_id"` - Ref string `json:"ref"` - Text string `json:"text"` + Author string `json:"author"` + AuthorID int `json:"author_id"` + Cell string `json:"cell"` + Text string `json:"string"` + Runs []RichTextRun `json:"runs"` } -- cgit v1.2.1