-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add comment without author #1204
Comments
Excel comments have a default author: |
Thanks for your issue. The author will show with bold style in the comments box currently. I'll consider adding support for creating rich text comments later. |
- Allowing insert SVG format images - Unit tests updated
I have added support for creating rich text comments. This feature will be released in version 2.7.0, this is a breaking change, now you can add a comment like this: err := f.AddComment(sheet, excelize.Comment{
Cell: "A12",
Author: "Excelize",
Text: "Excelize: This is a comment.",
}) or set rich text in the comment err := f.AddComment(sheet, excelize.Comment{
Cell: "A12",
Author: "Excelize",
Runs: []excelize.RichTextRun{
{Text: "Excelize: ", Font: &excelize.Font{Bold: true}},
{Text: "This is a comment."},
},
}) |
- Allowing insert SVG format images - Unit tests updated
- Allowing insert SVG format images - Unit tests updated
Description
author参数设置为空字符串时 ,打开excel提示 “部分内容有问题。是否让我们尽量尝试恢复? ...”
When the author parameter is set to an empty string, opening excel prompts "There is a problem with some content. Let's try to restore it as much as possible? ..." (google translate)
code
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
The text was updated successfully, but these errors were encountered: