git.iko.soy/typeable/pandoc
on master help sign in
Added test for headerless table.

Updated test cases for latex and html. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1862 788f1e2b-df1e-0410-8736-df70ead52e1b

commit44bbe5c7deda6db9a69632ea7812409178b06438 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 7 Mar 2010, 19:34 (17 years ago) parent1f3b48c
4 files changed+83−1
tests/tables.html+34 tests/tables.latex+22 tests/tables.native+19−1 tests/tables.txt+8
tests/tables.html+34
@@ -204,4 +204,38 @@
204204 >Here's another one. Note the blank line between rows.</td
205205 ></tr
206206 ></table
207+><p
208+>Table without column headers:</p
209+><table
210+><tr class="odd"
211+ ><td align="right"
212+ >12</td
213+ ><td align="left"
214+ >12</td
215+ ><td align="center"
216+ >12</td
217+ ><td align="right"
218+ >12</td
219+ ></tr
220+ ><tr class="even"
221+ ><td align="right"
222+ >123</td
223+ ><td align="left"
224+ >123</td
225+ ><td align="center"
226+ >123</td
227+ ><td align="right"
228+ >123</td
229+ ></tr
230+ ><tr class="odd"
231+ ><td align="right"
232+ >1</td
233+ ><td align="left"
234+ >1</td
235+ ><td align="center"
236+ >1</td
237+ ><td align="right"
238+ >1</td
239+ ></tr
240+ ></table
207241>
tests/tables.latex+22
@@ -137,3 +137,25 @@ Second
137137\end{tabular}
138138\end{center}
139139
140+Table without column headers:
141+
142+\begin{center}
143+\begin{tabular}{rlcr}
144+12
145+ & 12
146+ & 12
147+ & 12
148+\\
149+123
150+ & 123
151+ & 123
152+ & 123
153+\\
154+1
155+ & 1
156+ & 1
157+ & 1
158+\\
159+\end{tabular}
160+\end{center}
161+
tests/tables.native+19−1
@@ -80,5 +80,23 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
8080 [ [ Plain [Str "Second"] ]
8181 , [ Plain [Str "row"] ]
8282 , [ Plain [Str "5",Str ".",Str "0"] ]
83− , [ Plain [Str "Here",Str "'",Str "s",Space,Str "another",Space,Str "one",Str ".",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows",Str "."] ] ] ] ]
83+ , [ Plain [Str "Here",Str "'",Str "s",Space,Str "another",Space,Str "one",Str ".",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows",Str "."] ] ] ]
84+, Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers:"]
85+, Table [] [AlignRight,AlignLeft,AlignCenter,AlignRight] [0.0,0.0,0.0,0.0]
86+ [ []
87+ , []
88+ , []
89+ , [] ] [
90+ [ [ Plain [Str "12"] ]
91+ , [ Plain [Str "12"] ]
92+ , [ Plain [Str "12"] ]
93+ , [ Plain [Str "12"] ] ],
94+ [ [ Plain [Str "123"] ]
95+ , [ Plain [Str "123"] ]
96+ , [ Plain [Str "123"] ]
97+ , [ Plain [Str "123"] ] ],
98+ [ [ Plain [Str "1"] ]
99+ , [ Plain [Str "1"] ]
100+ , [ Plain [Str "1"] ]
101+ , [ Plain [Str "1"] ] ] ] ]
84102
tests/tables.txt+8
@@ -55,3 +55,11 @@ Multiline table without caption:
5555 the blank line between rows.
5656---------------------------------------------------------------
5757
58+Table without column headers:
59+
60+------- ------ ---------- -------
61+ 12 12 12 12
62+ 123 123 123 123
63+ 1 1 1 1
64+------- ------ ---------- -------
65+