Files
pandoc/test/command/8764.md
John MacFarlane 1d62883e14 HTML reader: require unanimity for RowHeadColumns.
Previously we used the max.  #8634 switched to the min, but this
had bad results.  This commit sets the RowHeadColumns to the consensus
value from all rows, or 0 if there is no consensus.

See #8984.
2023-08-05 11:48:29 -07:00

51 lines
1.7 KiB
Markdown

```
% pandoc -f html -t opendocument
<table>
<tbody>
<tr>
<th>Header</th>
<td>Normal cell (column 2)</td>
<td>Normal cell (column 3)</td>
</tr>
<tr>
<td>Normal cell (column 1)</td>
<td>Normal cell (column 2)</td>
<td>Normal cell (column 3)</td>
</tr>
</tbody>
</table>
^D
<table:table table:name="Table1" table:style-name="Table1">
<table:table-column table:style-name="Table1.A" />
<table:table-column table:style-name="Table1.B" />
<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>
</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
2)</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
3)</text:p>
</table:table-cell>
</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
1)</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
2)</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
3)</text:p>
</table:table-cell>
</table:table-row>
</table:table>
```