aboutsummaryrefslogtreecommitdiff
path: root/test/tables.rst
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-06 22:33:24 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-06 22:33:24 -0700
commitbd8a66394bc25b52dca9ffd963a560a4ca492f9c (patch)
treec10ed7ee83a665967bdbf04d62b35f1f987271e6 /test/tables.rst
parent36a6a40ef7db36686630adf8ccb18a0fa252768f (diff)
downloadpandoc-bd8a66394bc25b52dca9ffd963a560a4ca492f9c.tar.gz
RST writer: use simple tables when possible.
Closes #4750. Text.Pandoc.Writers.Shared now exports hasSimpleCells [API change].
Diffstat (limited to 'test/tables.rst')
-rw-r--r--test/tables.rst60
1 files changed, 26 insertions, 34 deletions
diff --git a/test/tables.rst b/test/tables.rst
index 4559883cd..660df61d4 100644
--- a/test/tables.rst
+++ b/test/tables.rst
@@ -2,41 +2,35 @@ Simple table with caption:
.. table:: Demonstration of simple table syntax.
- +-------+------+--------+---------+
- | Right | Left | Center | Default |
- +=======+======+========+=========+
- | 12 | 12 | 12 | 12 |
- +-------+------+--------+---------+
- | 123 | 123 | 123 | 123 |
- +-------+------+--------+---------+
- | 1 | 1 | 1 | 1 |
- +-------+------+--------+---------+
+ ===== ==== ====== =======
+ Right Left Center Default
+ ===== ==== ====== =======
+ 12 12 12 12
+ 123 123 123 123
+ 1 1 1 1
+ ===== ==== ====== =======
Simple table without caption:
-+-------+------+--------+---------+
-| Right | Left | Center | Default |
-+=======+======+========+=========+
-| 12 | 12 | 12 | 12 |
-+-------+------+--------+---------+
-| 123 | 123 | 123 | 123 |
-+-------+------+--------+---------+
-| 1 | 1 | 1 | 1 |
-+-------+------+--------+---------+
+===== ==== ====== =======
+Right Left Center Default
+===== ==== ====== =======
+12 12 12 12
+123 123 123 123
+1 1 1 1
+===== ==== ====== =======
Simple table indented two spaces:
.. table:: Demonstration of simple table syntax.
- +-------+------+--------+---------+
- | Right | Left | Center | Default |
- +=======+======+========+=========+
- | 12 | 12 | 12 | 12 |
- +-------+------+--------+---------+
- | 123 | 123 | 123 | 123 |
- +-------+------+--------+---------+
- | 1 | 1 | 1 | 1 |
- +-------+------+--------+---------+
+ ===== ==== ====== =======
+ Right Left Center Default
+ ===== ==== ====== =======
+ 12 12 12 12
+ 123 123 123 123
+ 1 1 1 1
+ ===== ==== ====== =======
Multiline table with caption:
@@ -70,13 +64,11 @@ Multiline table without caption:
Table without column headers:
-+-----+-----+-----+-----+
-| 12 | 12 | 12 | 12 |
-+-----+-----+-----+-----+
-| 123 | 123 | 123 | 123 |
-+-----+-----+-----+-----+
-| 1 | 1 | 1 | 1 |
-+-----+-----+-----+-----+
+=== === === ===
+12 12 12 12
+123 123 123 123
+1 1 1 1
+=== === === ===
Multiline table without column headers: