summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authortonnyzhang <450024933@qq.com>2021-02-22 06:04:13 -0600
committerGitHub <noreply@github.com>2021-02-22 20:04:13 +0800
commitbbb8ebfa8cc648ec09094d16eddebb03240baecf (patch)
tree95e74fa22a61bebc3f51023589e4e081fe898799 /comment.go
parent283339534741d3f0ff01c2ed2adc7c87445edf07 (diff)
add GetCellRichText method and test (#789)
Diffstat (limited to 'comment.go')
-rw-r--r--comment.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/comment.go b/comment.go
index 1ef3877..c897943 100644
--- a/comment.go
+++ b/comment.go
@@ -253,6 +253,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) {
}
}
defaultFont := f.GetDefaultFont()
+ bold := ""
cmt := xlsxComment{
Ref: cell,
AuthorID: 0,
@@ -260,7 +261,7 @@ func (f *File) addComment(commentsXML, cell string, formatSet *formatComment) {
R: []xlsxR{
{
RPr: &xlsxRPr{
- B: " ",
+ B: &bold,
Sz: &attrValFloat{Val: float64Ptr(9)},
Color: &xlsxColor{
Indexed: 81,