Ods: small fixes
This commit is contained in:
@ -93,12 +93,7 @@ namespace Elwig.Helpers.Export {
|
||||
""");
|
||||
|
||||
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>
|
||||
|
||||
""");
|
||||
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("""
|
||||
@ -226,7 +221,7 @@ namespace Elwig.Helpers.Export {
|
||||
await Content.WriteAsync(" <table:table-row>\r\n");
|
||||
foreach (var (data, units) in row.Zip(colUnits)) {
|
||||
if (data is Array a) {
|
||||
await Content.WriteAsync(i < a.Length ? FormatCell(a.GetValue(i), units: units) : $" <table:table-cell tables:number-columns-repeated=\"{GetSubCols(a.GetType().GetElementType())}\"/>\r\n");
|
||||
await Content.WriteAsync(i < a.Length ? FormatCell(a.GetValue(i), units: units) : $" <table:table-cell table:number-columns-repeated=\"{GetSubCols(a.GetType().GetElementType())}\"/>\r\n");
|
||||
} else {
|
||||
await Content.WriteAsync(FormatCell(data, rowSpan: i == 0 ? rowNum : 1, isCovered: i > 0, units: units));
|
||||
}
|
||||
|
Reference in New Issue
Block a user