mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
The Builder.simpleTable now only adds a row to the TableHead when the given header row is not null. This uncovered an inconsistency in the readers: some would unconditionally emit a header filled with empty cells, even if the header was not present. Now every reader has the conditional behaviour. Only the XWiki writer depended on the header row being always present; it now pads its head as necessary.
160 lines
3.7 KiB
Plaintext
160 lines
3.7 KiB
Plaintext
<p>Simple table with caption:</p>
|
||
<table>
|
||
<row role="label">
|
||
<cell><p>Right</p></cell>
|
||
<cell><p>Left</p></cell>
|
||
<cell><p>Center</p></cell>
|
||
<cell><p>Default</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
</row>
|
||
</table>
|
||
<p>Simple table without caption:</p>
|
||
<table>
|
||
<row role="label">
|
||
<cell><p>Right</p></cell>
|
||
<cell><p>Left</p></cell>
|
||
<cell><p>Center</p></cell>
|
||
<cell><p>Default</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
</row>
|
||
</table>
|
||
<p>Simple table indented two spaces:</p>
|
||
<table>
|
||
<row role="label">
|
||
<cell><p>Right</p></cell>
|
||
<cell><p>Left</p></cell>
|
||
<cell><p>Center</p></cell>
|
||
<cell><p>Default</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
</row>
|
||
</table>
|
||
<p>Multiline table with caption:</p>
|
||
<table>
|
||
<row role="label">
|
||
<cell><p>Centered Header</p></cell>
|
||
<cell><p>Left Aligned</p></cell>
|
||
<cell><p>Right Aligned</p></cell>
|
||
<cell><p>Default aligned</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>First</p></cell>
|
||
<cell><p>row</p></cell>
|
||
<cell><p>12.0</p></cell>
|
||
<cell><p>Example of a row that spans multiple lines.</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>Second</p></cell>
|
||
<cell><p>row</p></cell>
|
||
<cell><p>5.0</p></cell>
|
||
<cell><p>Here’s another one. Note the blank line between rows.</p></cell>
|
||
</row>
|
||
</table>
|
||
<p>Multiline table without caption:</p>
|
||
<table>
|
||
<row role="label">
|
||
<cell><p>Centered Header</p></cell>
|
||
<cell><p>Left Aligned</p></cell>
|
||
<cell><p>Right Aligned</p></cell>
|
||
<cell><p>Default aligned</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>First</p></cell>
|
||
<cell><p>row</p></cell>
|
||
<cell><p>12.0</p></cell>
|
||
<cell><p>Example of a row that spans multiple lines.</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>Second</p></cell>
|
||
<cell><p>row</p></cell>
|
||
<cell><p>5.0</p></cell>
|
||
<cell><p>Here’s another one. Note the blank line between rows.</p></cell>
|
||
</row>
|
||
</table>
|
||
<p>Table without column headers:</p>
|
||
<table>
|
||
<row>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
<cell><p>12</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
<cell><p>123</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
<cell><p>1</p></cell>
|
||
</row>
|
||
</table>
|
||
<p>Multiline table without column headers:</p>
|
||
<table>
|
||
<row>
|
||
<cell><p>First</p></cell>
|
||
<cell><p>row</p></cell>
|
||
<cell><p>12.0</p></cell>
|
||
<cell><p>Example of a row that spans multiple lines.</p></cell>
|
||
</row>
|
||
<row>
|
||
<cell><p>Second</p></cell>
|
||
<cell><p>row</p></cell>
|
||
<cell><p>5.0</p></cell>
|
||
<cell><p>Here’s another one. Note the blank line between rows.</p></cell>
|
||
</row>
|
||
</table>
|