summaryrefslogtreecommitdiff
path: root/xmlComments.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-11-02 08:42:00 +0800
committerxuri <xuri.me@gmail.com>2022-11-02 08:45:06 +0800
commitdb2d084ada1a08a48967506b2f1852062168deec (patch)
tree18334eb7de2deb65c822a51e1e435084831c8876 /xmlComments.go
parenta410b22bdd50e9f212b0b454e5aed798e3476394 (diff)
This closes #1204, breaking changes for add comments
- Allowing insert SVG format images - Unit tests updated
Diffstat (limited to 'xmlComments.go')
-rw-r--r--xmlComments.go15
1 files changed, 5 insertions, 10 deletions
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"`
}