git.iko.soy/typeable/pandoc
on master help sign in
Added test suites for RST, markdown, and man tables.
3f3c29ffiddlosopher
tests/tables.mannew file+205
@@ -0,0 +1,205 @@
1+.PP
2+Simple table with caption:
3+.PP
4+Demonstration of simple table syntax\.
5+.TS
6+tab(@);
7+rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n).
8+T{
9+Right
10+T}@T{
11+Left
12+T}@T{
13+Center
14+T}@T{
15+Default
16+T}
17+_
18+T{
19+12
20+T}@T{
21+12
22+T}@T{
23+12
24+T}@T{
25+12
26+T}
27+T{
28+123
29+T}@T{
30+123
31+T}@T{
32+123
33+T}@T{
34+123
35+T}
36+T{
37+1
38+T}@T{
39+1
40+T}@T{
41+1
42+T}@T{
43+1
44+T}
45+.TE
46+.PP
47+Simple table without caption:
48+.PP
49+.TS
50+tab(@);
51+rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n).
52+T{
53+Right
54+T}@T{
55+Left
56+T}@T{
57+Center
58+T}@T{
59+Default
60+T}
61+_
62+T{
63+12
64+T}@T{
65+12
66+T}@T{
67+12
68+T}@T{
69+12
70+T}
71+T{
72+123
73+T}@T{
74+123
75+T}@T{
76+123
77+T}@T{
78+123
79+T}
80+T{
81+1
82+T}@T{
83+1
84+T}@T{
85+1
86+T}@T{
87+1
88+T}
89+.TE
90+.PP
91+Simple table indented two spaces:
92+.PP
93+Demonstration of simple table syntax\.
94+.TS
95+tab(@);
96+rw(10.50n) lw(6.13n) cw(11.38n) lw(8.75n).
97+T{
98+Right
99+T}@T{
100+Left
101+T}@T{
102+Center
103+T}@T{
104+Default
105+T}
106+_
107+T{
108+12
109+T}@T{
110+12
111+T}@T{
112+12
113+T}@T{
114+12
115+T}
116+T{
117+123
118+T}@T{
119+123
120+T}@T{
121+123
122+T}@T{
123+123
124+T}
125+T{
126+1
127+T}@T{
128+1
129+T}@T{
130+1
131+T}@T{
132+1
133+T}
134+.TE
135+.PP
136+Multiline table with caption:
137+.PP
138+Here\[aq]s the caption\. It may span multiple lines\.
139+.TS
140+tab(@);
141+cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n).
142+T{
143+Centered Header
144+T}@T{
145+Left Aligned
146+T}@T{
147+Right Aligned
148+T}@T{
149+Default aligned
150+T}
151+_
152+T{
153+First
154+T}@T{
155+row
156+T}@T{
157+12\.0
158+T}@T{
159+Example of a row that spans multiple lines\.
160+T}
161+T{
162+Second
163+T}@T{
164+row
165+T}@T{
166+5\.0
167+T}@T{
168+Here\[aq]s another one\. Note the blank line between rows\.
169+T}
170+.TE
171+.PP
172+Multiline table without caption:
173+.PP
174+.TS
175+tab(@);
176+cw(10.50n) lw(9.63n) rw(11.38n) lw(23.63n).
177+T{
178+Centered Header
179+T}@T{
180+Left Aligned
181+T}@T{
182+Right Aligned
183+T}@T{
184+Default aligned
185+T}
186+_
187+T{
188+First
189+T}@T{
190+row
191+T}@T{
192+12\.0
193+T}@T{
194+Example of a row that spans multiple lines\.
195+T}
196+T{
197+Second
198+T}@T{
199+row
200+T}@T{
201+5\.0
202+T}@T{
203+Here\[aq]s another one\. Note the blank line between rows\.
204+T}
205+.TE
tests/tables.markdownnew file+60
@@ -0,0 +1,60 @@
1+Simple table with caption:
2+
3+ Right Left Center Default
4+ ----------- ------ ------------ ---------
5+ 12 12 12 12
6+ 123 123 123 123
7+ 1 1 1 1
8+
9+ Table: Demonstration of simple table syntax.
10+
11+Simple table without caption:
12+
13+ Right Left Center Default
14+ ----------- ------ ------------ ---------
15+ 12 12 12 12
16+ 123 123 123 123
17+ 1 1 1 1
18+
19+Simple table indented two spaces:
20+
21+ Right Left Center Default
22+ ----------- ------ ------------ ---------
23+ 12 12 12 12
24+ 123 123 123 123
25+ 1 1 1 1
26+
27+ Table: Demonstration of simple table syntax.
28+
29+Multiline table with caption:
30+
31+ -----------------------------------------------------------
32+ Centered Left Right Default aligned
33+ Header Aligned Aligned
34+ ----------- ---------- ------------ --------------------------
35+ First row 12.0 Example of a row that
36+ spans multiple lines.
37+
38+ Second row 5.0 Here's another one. Note
39+ the blank line between
40+ rows.
41+ -----------------------------------------------------------
42+
43+ Table: Here's the caption. It may span multiple lines.
44+
45+Multiline table without caption:
46+
47+ -----------------------------------------------------------
48+ Centered Left Right Default aligned
49+ Header Aligned Aligned
50+ ----------- ---------- ------------ --------------------------
51+ First row 12.0 Example of a row that
52+ spans multiple lines.
53+
54+ Second row 5.0 Here's another one. Note
55+ the blank line between
56+ rows.
57+ -----------------------------------------------------------
58+
59+
60+
tests/tables.rstnew file+71
@@ -0,0 +1,71 @@
1+Simple table with caption:
2+
3++-------------+--------+--------------+-----------+
4+| Right | Left | Center | Default |
5++=============+========+==============+===========+
6+| 12 | 12 | 12 | 12 |
7++-------------+--------+--------------+-----------+
8+| 123 | 123 | 123 | 123 |
9++-------------+--------+--------------+-----------+
10+| 1 | 1 | 1 | 1 |
11++-------------+--------+--------------+-----------+
12+
13+Table: Demonstration of simple table syntax.
14+
15+Simple table without caption:
16+
17++-------------+--------+--------------+-----------+
18+| Right | Left | Center | Default |
19++=============+========+==============+===========+
20+| 12 | 12 | 12 | 12 |
21++-------------+--------+--------------+-----------+
22+| 123 | 123 | 123 | 123 |
23++-------------+--------+--------------+-----------+
24+| 1 | 1 | 1 | 1 |
25++-------------+--------+--------------+-----------+
26+
27+Simple table indented two spaces:
28+
29++-------------+--------+--------------+-----------+
30+| Right | Left | Center | Default |
31++=============+========+==============+===========+
32+| 12 | 12 | 12 | 12 |
33++-------------+--------+--------------+-----------+
34+| 123 | 123 | 123 | 123 |
35++-------------+--------+--------------+-----------+
36+| 1 | 1 | 1 | 1 |
37++-------------+--------+--------------+-----------+
38+
39+Table: Demonstration of simple table syntax.
40+
41+Multiline table with caption:
42+
43++-------------+------------+--------------+----------------------------+
44+| Centered | Left | Right | Default aligned |
45+| Header | Aligned | Aligned | |
46++=============+============+==============+============================+
47+| First | row | 12.0 | Example of a row that |
48+| | | | spans multiple lines. |
49++-------------+------------+--------------+----------------------------+
50+| Second | row | 5.0 | Here's another one. Note |
51+| | | | the blank line between |
52+| | | | rows. |
53++-------------+------------+--------------+----------------------------+
54+
55+Table: Here's the caption. It may span multiple lines.
56+
57+Multiline table without caption:
58+
59++-------------+------------+--------------+----------------------------+
60+| Centered | Left | Right | Default aligned |
61+| Header | Aligned | Aligned | |
62++=============+============+==============+============================+
63+| First | row | 12.0 | Example of a row that |
64+| | | | spans multiple lines. |
65++-------------+------------+--------------+----------------------------+
66+| Second | row | 5.0 | Here's another one. Note |
67+| | | | the blank line between |
68+| | | | rows. |
69++-------------+------------+--------------+----------------------------+
70+
71+