aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-27 10:24:06 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-27 10:24:06 -0700
commit0baaa1080a5e937bf8b3c301fbe5db08145b58b4 (patch)
treeb3cf368684b2e2bd9545b82dbf3bdf93d2572e2d /tests
parent2a4dbc3dce037d16a65d569ada6be2fb05240e4e (diff)
downloadpandoc-0baaa1080a5e937bf8b3c301fbe5db08145b58b4.tar.gz
Pipe tables: allow indented columns.
Previously the left-hand column could not start with 4 or more spaces indent. This was inconvenient for right-aligned left columns. Note that the first (header column) must still have 3 or fewer spaces indentation, or the table will be treated as an indented code block.
Diffstat (limited to 'tests')
-rw-r--r--tests/pipe-tables.native10
-rw-r--r--tests/pipe-tables.txt7
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/pipe-tables.native b/tests/pipe-tables.native
index eafd21d22..9d499c9c2 100644
--- a/tests/pipe-tables.native
+++ b/tests/pipe-tables.native
@@ -75,4 +75,12 @@
,Para [Str "Header-less",Space,Str "one-column:"]
,Table [] [AlignCenter] [0.0]
[[]]
- [[[Plain [Str "hi"]]]]]
+ [[[Plain [Str "hi"]]]]
+,Para [Str "Indented",Space,Str "left",Space,Str "column:"]
+,Table [] [AlignRight,AlignLeft] [0.0,0.0]
+ [[Plain [Str "Number",Space,Str "of",Space,Str "siblings"]]
+ ,[Plain [Str "Salary"]]]
+ [[[Plain [Str "3"]]
+ ,[Plain [Str "33"]]]
+ ,[[Plain [Str "4"]]
+ ,[Plain [Str "44"]]]]]
diff --git a/tests/pipe-tables.txt b/tests/pipe-tables.txt
index 83debd595..a8803724a 100644
--- a/tests/pipe-tables.txt
+++ b/tests/pipe-tables.txt
@@ -52,3 +52,10 @@ Header-less one-column:
| |
|:-:|
|hi|
+
+Indented left column:
+
+Number of siblings | Salary
+------------------:|:------
+ 3 | 33
+ 4 | 44