diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-03-07 19:34:57 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-03-07 19:34:57 +0000 |
commit | 44bbe5c7deda6db9a69632ea7812409178b06438 (patch) | |
tree | aae51daf0dcc6a33192c3271f3dde9e7717e0cf7 | |
parent | 1f3b48c1932f8f3e264cb60d939a41dab3bab5e8 (diff) | |
download | pandoc-44bbe5c7deda6db9a69632ea7812409178b06438.tar.gz |
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
-rw-r--r-- | tests/tables.html | 34 | ||||
-rw-r--r-- | tests/tables.latex | 22 | ||||
-rw-r--r-- | tests/tables.native | 20 | ||||
-rw-r--r-- | tests/tables.txt | 8 |
4 files changed, 83 insertions, 1 deletions
diff --git a/tests/tables.html b/tests/tables.html index 49b44661c..42e3ec37f 100644 --- a/tests/tables.html +++ b/tests/tables.html @@ -204,4 +204,38 @@ >Here's another one. Note the blank line between rows.</td ></tr ></table +><p +>Table without column headers:</p +><table +><tr class="odd" + ><td align="right" + >12</td + ><td align="left" + >12</td + ><td align="center" + >12</td + ><td align="right" + >12</td + ></tr + ><tr class="even" + ><td align="right" + >123</td + ><td align="left" + >123</td + ><td align="center" + >123</td + ><td align="right" + >123</td + ></tr + ><tr class="odd" + ><td align="right" + >1</td + ><td align="left" + >1</td + ><td align="center" + >1</td + ><td align="right" + >1</td + ></tr + ></table > diff --git a/tests/tables.latex b/tests/tables.latex index 0dec7e4b0..cef7abf1a 100644 --- a/tests/tables.latex +++ b/tests/tables.latex @@ -137,3 +137,25 @@ Second \end{tabular} \end{center} +Table without column headers: + +\begin{center} +\begin{tabular}{rlcr} +12 + & 12 + & 12 + & 12 +\\ +123 + & 123 + & 123 + & 123 +\\ +1 + & 1 + & 1 + & 1 +\\ +\end{tabular} +\end{center} + diff --git a/tests/tables.native b/tests/tables.native index aa967318d..14931c76c 100644 --- a/tests/tables.native +++ b/tests/tables.native @@ -80,5 +80,23 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) [ [ Plain [Str "Second"] ] , [ Plain [Str "row"] ] , [ Plain [Str "5",Str ".",Str "0"] ] - , [ 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 "."] ] ] ] ] + , [ 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 "."] ] ] ] +, Para [Str "Table",Space,Str "without",Space,Str "column",Space,Str "headers:"] +, Table [] [AlignRight,AlignLeft,AlignCenter,AlignRight] [0.0,0.0,0.0,0.0] + [ [] + , [] + , [] + , [] ] [ + [ [ Plain [Str "12"] ] + , [ Plain [Str "12"] ] + , [ Plain [Str "12"] ] + , [ Plain [Str "12"] ] ], + [ [ Plain [Str "123"] ] + , [ Plain [Str "123"] ] + , [ Plain [Str "123"] ] + , [ Plain [Str "123"] ] ], + [ [ Plain [Str "1"] ] + , [ Plain [Str "1"] ] + , [ Plain [Str "1"] ] + , [ Plain [Str "1"] ] ] ] ] diff --git a/tests/tables.txt b/tests/tables.txt index 73b3b9cd7..6cf32726d 100644 --- a/tests/tables.txt +++ b/tests/tables.txt @@ -55,3 +55,11 @@ Multiline table without caption: the blank line between rows. --------------------------------------------------------------- +Table without column headers: + +------- ------ ---------- ------- + 12 12 12 12 + 123 123 123 123 + 1 1 1 1 +------- ------ ---------- ------- + |