mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-04 14:45:50 +00:00
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.
51 lines
1.7 KiB
Markdown
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>
|
|
```
|