mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix comment styles
This commit is contained in:
parent
03762be3a1
commit
85f62083c9
|
@ -2585,7 +2585,7 @@ void xlsx_producer::write_vml_drawings(const relationship &rel, worksheet ws,
|
|||
style_string.append(part.first);
|
||||
style_string.append(":");
|
||||
style_string.append(part.second);
|
||||
style_string.append(":");
|
||||
style_string.append(";");
|
||||
}
|
||||
|
||||
serializer().attribute("style", style_string);
|
||||
|
|
|
@ -168,7 +168,7 @@ public:
|
|||
comment_text.clear();
|
||||
comment_text.add_run(formatted_run);
|
||||
sheet1.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
||||
|
||||
/*
|
||||
auto sheet2 = wb.create_sheet();
|
||||
sheet2.get_cell("A1").set_value("Sheet2!A1");
|
||||
formatted_run.set_string("Sheet2 comment");
|
||||
|
@ -181,10 +181,9 @@ public:
|
|||
comment_text.clear();
|
||||
comment_text.add_run(formatted_run);
|
||||
sheet2.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
||||
|
||||
*/
|
||||
wb.save("debug.xlsx");
|
||||
wb.load("data/18_basic_comments.xlsx");
|
||||
// wb.load("debug.xlsx");
|
||||
wb.load("debug.xlsx");
|
||||
|
||||
// TS_ASSERT(workbook_matches_file(wb, xlnt::path("data/18_basic_comments.xlsx")));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user