pandoc/test/tables.tei
despresc c7814f31e1 Use the new builders, modify readers to preserve empty headers
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.
2020-04-15 23:03:22 -04:00

159 lines
3.7 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>Heres 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>Heres 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>Heres another one. Note the blank line between rows.</p></cell>
</row>
</table>