fix comment styles

This commit is contained in:
Thomas Fussell 2016-11-27 18:32:00 +01:00
parent 03762be3a1
commit 85f62083c9
2 changed files with 4 additions and 5 deletions

View File

@ -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);

View File

@ -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")));
}