We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
copy comments with different authors, it only save the first author.
test code:
func testCopyComment() { f1 := excelize.NewFile() f1.AddComment("Sheet1", "A1", `{"author":"AA","text":" comment 1"}`) f1.AddComment("Sheet1", "A2", `{"author":"BB","text":" comment 2"}`) comment1 := f1.GetComments()["Sheet1"] fmt.Printf("%+v\n", comment1) f2 := excelize.NewFile() for _, com := range comment1 { f2.AddComment("Sheet1", com.Ref, fmt.Sprintf(`{"author":"%s","text":"%s"}`, com.Author, strings.TrimPrefix(com.Text, com.Author))) } comment2 := f2.GetComments()["Sheet1"] fmt.Printf("%+v\n", comment2) }
output:
[{Author:AA AuthorID:0 Ref:A1 Text:AA comment 1} {Author:AA AuthorID:0 Ref:A2 Text:BB comment 2}] [{Author:AA AuthorID:0 Ref:A1 Text:AA comment 1} {Author:AA AuthorID:0 Ref:A2 Text:AABB comment 2}]
The text was updated successfully, but these errors were encountered:
a13ef55
Thanks for your feedback, I have fixed it, please try to use the master branch code, and this patch will be released in the next version.
Sorry, something went wrong.
This closes qax-os#825, closes qax-os#829, closes qax-os#830, fix iss…
a1593db
…ue when get and add comments on multi authors
No branches or pull requests
copy comments with different authors, it only save the first author.
test code:
output:
[{Author:AA AuthorID:0 Ref:A1 Text:AA comment 1} {Author:AA AuthorID:0 Ref:A2 Text:BB comment 2}]
[{Author:AA AuthorID:0 Ref:A1 Text:AA comment 1} {Author:AA AuthorID:0 Ref:A2 Text:AABB comment 2}]
The text was updated successfully, but these errors were encountered: