mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 11:27:06 +00:00
1d62883e14
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.
1.7 KiB
1.7 KiB
% 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>