aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorMichael Stahl <[email protected]>2023-05-01 14:21:16 +0200
committerJohn MacFarlane <[email protected]>2023-05-01 20:55:37 -0700
commit737446f33d9d8383bdd95d218f77391e0fc08a13 (patch)
tree5d42571a8452a0ea77fb77db12d87fc8220b43b1 /test/command
parent2881c1274018a31e78ccba647cae4c2764fb5dad (diff)
Writers.OpenDocument: handle row header column cells as header cells
The previous commit prevented header column cells from being dropped on the floor, this one changes the paragraph style to "Table_20_Heading". Note that for the test input, the result is not correct: the AnnotatedTable type cannot represent the HTML input properly, as it only has a concept of header rows and header columns, but HTML can have an individual cell that is a header (not 100% sure but they way i read https://html.spec.whatwg.org/#header-and-data-cell-semantics the <th> cell here is both a row header cell and a column header cell while the other cells in the row and column are not header cells), and header cells may even appear "in the middle" of a table (see example in https://html.spec.whatwg.org/#the-th-element). So while this appears like it's the right thing to do for Writer.OpenDocument, it's not clear if this is going to make things better or worse overall. Fixes: #8764
Diffstat (limited to 'test/command')
-rw-r--r--test/command/8764.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/command/8764.md b/test/command/8764.md
index e5fe43d25..919f8c738 100644
--- a/test/command/8764.md
+++ b/test/command/8764.md
@@ -21,7 +21,7 @@
<table:table-column table:style-name="Table1.C" />
<table:table-row>
<table:table-cell table:style-name="TableRowCell" office:value-type="string">
- <text:p text:style-name="Table_20_Contents">Header</text:p>
+ <text:p text:style-name="Table_20_Heading">Header</text:p>
</table:table-cell>
<table:table-cell table:style-name="TableRowCell" office:value-type="string">
<text:p text:style-name="Table_20_Contents">Normal cell (column
@@ -34,7 +34,7 @@
</table:table-row>
<table:table-row>
<table:table-cell table:style-name="TableRowCell" office:value-type="string">
- <text:p text:style-name="Table_20_Contents">Normal cell (column
+ <text:p text:style-name="Table_20_Heading">Normal cell (column
1)</text:p>
</table:table-cell>
<table:table-cell table:style-name="TableRowCell" office:value-type="string">