Ods: change colw to colXmm
This commit is contained in:
@ -93,7 +93,7 @@ namespace Elwig.Helpers.Export {
|
|||||||
""");
|
""");
|
||||||
|
|
||||||
for (int i = 1; i <= 100; i++) {
|
for (int i = 1; i <= 100; i++) {
|
||||||
await Content.WriteAsync($" <style:style style:name=\"colw{i}\" style:family=\"table-column\"><style:table-column-properties style:column-width=\"{i}mm\"/></style:style>\r\n");
|
await Content.WriteAsync($" <style:style style:name=\"col{i}mm\" style:family=\"table-column\"><style:table-column-properties style:column-width=\"{i}mm\"/></style:style>\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
await Content.WriteAsync("""
|
await Content.WriteAsync("""
|
||||||
@ -188,7 +188,7 @@ namespace Elwig.Helpers.Export {
|
|||||||
await Content.WriteAsync($" <table:table table:name=\"{table.Name}\" table:default-cell-style-name=\"default\">\r\n");
|
await Content.WriteAsync($" <table:table table:name=\"{table.Name}\" table:default-cell-style-name=\"default\">\r\n");
|
||||||
foreach (var (s, w) in table.ColumnSpans.Zip(table.ColumnWidths)) {
|
foreach (var (s, w) in table.ColumnSpans.Zip(table.ColumnWidths)) {
|
||||||
for (int i = 0; i < s; i++) {
|
for (int i = 0; i < s; i++) {
|
||||||
await Content.WriteAsync(" <table:table-column" + (w != null ? $" table:style-name=\"colw{w / s}\"" : "") + "/>\r\n");
|
await Content.WriteAsync(" <table:table-column" + (w != null ? $" table:style-name=\"col{(int)(w / s)}mm\"" : "") + "/>\r\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user