diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-03-09 04:34:07 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-03-09 04:34:07 +0000 |
commit | 0cf4652ad6cb59f5c10058f1dfc03cb2b2ab620d (patch) | |
tree | 2fdbca67f26c64b681c14a781f4f81d601702f5d /tests/tables.docbook | |
parent | b15fccd364cb5f8a472729109eb6faab1b3e435b (diff) | |
download | pandoc-0cf4652ad6cb59f5c10058f1dfc03cb2b2ab620d.tar.gz |
Docbook writer: handle headerless tables.
In addition, use cols, thead, and tbody.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1874 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/tables.docbook')
-rw-r--r-- | tests/tables.docbook | 657 |
1 files changed, 363 insertions, 294 deletions
diff --git a/tests/tables.docbook b/tests/tables.docbook index 6622fb2b2..6483a97c0 100644 --- a/tests/tables.docbook +++ b/tests/tables.docbook @@ -5,123 +5,131 @@ <caption> Demonstration of simple table syntax. </caption> - <tr> - <th align="right"> - Right - </th> - <th align="left"> - Left - </th> - <th align="center"> - Center - </th> - <th align="left"> - Default - </th> - </tr> - <tr> - <td align="right"> - 12 - </td> - <td align="left"> - 12 - </td> - <td align="center"> - 12 - </td> - <td align="left"> - 12 - </td> - </tr> - <tr> - <td align="right"> - 123 - </td> - <td align="left"> - 123 - </td> - <td align="center"> - 123 - </td> - <td align="left"> - 123 - </td> - </tr> - <tr> - <td align="right"> - 1 - </td> - <td align="left"> - 1 - </td> - <td align="center"> - 1 - </td> - <td align="left"> - 1 - </td> - </tr> + <thead> + <tr> + <th align="right"> + Right + </th> + <th align="left"> + Left + </th> + <th align="center"> + Center + </th> + <th align="left"> + Default + </th> + </tr> + </thead> + <tbody> + <tr> + <td align="right"> + 12 + </td> + <td align="left"> + 12 + </td> + <td align="center"> + 12 + </td> + <td align="left"> + 12 + </td> + </tr> + <tr> + <td align="right"> + 123 + </td> + <td align="left"> + 123 + </td> + <td align="center"> + 123 + </td> + <td align="left"> + 123 + </td> + </tr> + <tr> + <td align="right"> + 1 + </td> + <td align="left"> + 1 + </td> + <td align="center"> + 1 + </td> + <td align="left"> + 1 + </td> + </tr> + </tbody> </table> <para> Simple table without caption: </para> <informaltable> - <tr> - <th align="right"> - Right - </th> - <th align="left"> - Left - </th> - <th align="center"> - Center - </th> - <th align="left"> - Default - </th> - </tr> - <tr> - <td align="right"> - 12 - </td> - <td align="left"> - 12 - </td> - <td align="center"> - 12 - </td> - <td align="left"> - 12 - </td> - </tr> - <tr> - <td align="right"> - 123 - </td> - <td align="left"> - 123 - </td> - <td align="center"> - 123 - </td> - <td align="left"> - 123 - </td> - </tr> - <tr> - <td align="right"> - 1 - </td> - <td align="left"> - 1 - </td> - <td align="center"> - 1 - </td> - <td align="left"> - 1 - </td> - </tr> + <thead> + <tr> + <th align="right"> + Right + </th> + <th align="left"> + Left + </th> + <th align="center"> + Center + </th> + <th align="left"> + Default + </th> + </tr> + </thead> + <tbody> + <tr> + <td align="right"> + 12 + </td> + <td align="left"> + 12 + </td> + <td align="center"> + 12 + </td> + <td align="left"> + 12 + </td> + </tr> + <tr> + <td align="right"> + 123 + </td> + <td align="left"> + 123 + </td> + <td align="center"> + 123 + </td> + <td align="left"> + 123 + </td> + </tr> + <tr> + <td align="right"> + 1 + </td> + <td align="left"> + 1 + </td> + <td align="center"> + 1 + </td> + <td align="left"> + 1 + </td> + </tr> + </tbody> </informaltable> <para> Simple table indented two spaces: @@ -130,62 +138,66 @@ <caption> Demonstration of simple table syntax. </caption> - <tr> - <th align="right"> - Right - </th> - <th align="left"> - Left - </th> - <th align="center"> - Center - </th> - <th align="left"> - Default - </th> - </tr> - <tr> - <td align="right"> - 12 - </td> - <td align="left"> - 12 - </td> - <td align="center"> - 12 - </td> - <td align="left"> - 12 - </td> - </tr> - <tr> - <td align="right"> - 123 - </td> - <td align="left"> - 123 - </td> - <td align="center"> - 123 - </td> - <td align="left"> - 123 - </td> - </tr> - <tr> - <td align="right"> - 1 - </td> - <td align="left"> - 1 - </td> - <td align="center"> - 1 - </td> - <td align="left"> - 1 - </td> - </tr> + <thead> + <tr> + <th align="right"> + Right + </th> + <th align="left"> + Left + </th> + <th align="center"> + Center + </th> + <th align="left"> + Default + </th> + </tr> + </thead> + <tbody> + <tr> + <td align="right"> + 12 + </td> + <td align="left"> + 12 + </td> + <td align="center"> + 12 + </td> + <td align="left"> + 12 + </td> + </tr> + <tr> + <td align="right"> + 123 + </td> + <td align="left"> + 123 + </td> + <td align="center"> + 123 + </td> + <td align="left"> + 123 + </td> + </tr> + <tr> + <td align="right"> + 1 + </td> + <td align="left"> + 1 + </td> + <td align="center"> + 1 + </td> + <td align="left"> + 1 + </td> + </tr> + </tbody> </table> <para> Multiline table with caption: @@ -194,140 +206,197 @@ <caption> Here's the caption. It may span multiple lines. </caption> - <tr> - <th align="center" style="{width: 15%;}"> - Centered Header - </th> - <th align="left" style="{width: 13%;}"> - Left Aligned - </th> - <th align="right" style="{width: 16%;}"> - Right Aligned - </th> - <th align="left" style="{width: 33%;}"> - Default aligned - </th> - </tr> - <tr> - <td align="center"> - First - </td> - <td align="left"> - row - </td> - <td align="right"> - 12.0 - </td> - <td align="left"> - Example of a row that spans multiple lines. - </td> - </tr> - <tr> - <td align="center"> - Second - </td> - <td align="left"> - row - </td> - <td align="right"> - 5.0 - </td> - <td align="left"> - Here's another one. Note the blank line between rows. - </td> - </tr> + <col width="15%" /> + <col width="13%" /> + <col width="16%" /> + <col width="33%" /> + <thead> + <tr> + <th align="center"> + Centered Header + </th> + <th align="left"> + Left Aligned + </th> + <th align="right"> + Right Aligned + </th> + <th align="left"> + Default aligned + </th> + </tr> + </thead> + <tbody> + <tr> + <td align="center"> + First + </td> + <td align="left"> + row + </td> + <td align="right"> + 12.0 + </td> + <td align="left"> + Example of a row that spans multiple lines. + </td> + </tr> + <tr> + <td align="center"> + Second + </td> + <td align="left"> + row + </td> + <td align="right"> + 5.0 + </td> + <td align="left"> + Here's another one. Note the blank line between rows. + </td> + </tr> + </tbody> </table> <para> Multiline table without caption: </para> <informaltable> - <tr> - <th align="center" style="{width: 15%;}"> - Centered Header - </th> - <th align="left" style="{width: 13%;}"> - Left Aligned - </th> - <th align="right" style="{width: 16%;}"> - Right Aligned - </th> - <th align="left" style="{width: 33%;}"> - Default aligned - </th> - </tr> - <tr> - <td align="center"> - First - </td> - <td align="left"> - row - </td> - <td align="right"> - 12.0 - </td> - <td align="left"> - Example of a row that spans multiple lines. - </td> - </tr> - <tr> - <td align="center"> - Second - </td> - <td align="left"> - row - </td> - <td align="right"> - 5.0 - </td> - <td align="left"> - Here's another one. Note the blank line between rows. - </td> - </tr> + <col width="15%" /> + <col width="13%" /> + <col width="16%" /> + <col width="33%" /> + <thead> + <tr> + <th align="center"> + Centered Header + </th> + <th align="left"> + Left Aligned + </th> + <th align="right"> + Right Aligned + </th> + <th align="left"> + Default aligned + </th> + </tr> + </thead> + <tbody> + <tr> + <td align="center"> + First + </td> + <td align="left"> + row + </td> + <td align="right"> + 12.0 + </td> + <td align="left"> + Example of a row that spans multiple lines. + </td> + </tr> + <tr> + <td align="center"> + Second + </td> + <td align="left"> + row + </td> + <td align="right"> + 5.0 + </td> + <td align="left"> + Here's another one. Note the blank line between rows. + </td> + </tr> + </tbody> </informaltable> <para> Table without column headers: </para> <informaltable> - <tr> - <td align="right"> - 12 - </td> - <td align="left"> - 12 - </td> - <td align="center"> - 12 - </td> - <td align="right"> - 12 - </td> - </tr> - <tr> - <td align="right"> - 123 - </td> - <td align="left"> - 123 - </td> - <td align="center"> - 123 - </td> - <td align="right"> - 123 - </td> - </tr> - <tr> - <td align="right"> - 1 - </td> - <td align="left"> - 1 - </td> - <td align="center"> - 1 - </td> - <td align="right"> - 1 - </td> - </tr> + <tbody> + <tr> + <td align="right"> + 12 + </td> + <td align="left"> + 12 + </td> + <td align="center"> + 12 + </td> + <td align="right"> + 12 + </td> + </tr> + <tr> + <td align="right"> + 123 + </td> + <td align="left"> + 123 + </td> + <td align="center"> + 123 + </td> + <td align="right"> + 123 + </td> + </tr> + <tr> + <td align="right"> + 1 + </td> + <td align="left"> + 1 + </td> + <td align="center"> + 1 + </td> + <td align="right"> + 1 + </td> + </tr> + </tbody> +</informaltable> +<para> + Multiline table without column headers: +</para> +<informaltable> + <col width="15%" /> + <col width="13%" /> + <col width="16%" /> + <col width="33%" /> + <tbody> + <tr> + <td align="center"> + First + </td> + <td align="left"> + row + </td> + <td align="right"> + 12.0 + </td> + <td align="left"> + Example of a row that spans multiple lines. + </td> + </tr> + <tr> + <td align="center"> + Second + </td> + <td align="left"> + row + </td> + <td align="right"> + 5.0 + </td> + <td align="left"> + Here's another one. Note the blank line between rows. + </td> + </tr> + </tbody> </informaltable> |