From 6c9c307047c7df2d981189724f320eb16d135b6e Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sun, 7 Mar 2010 19:34:57 +0000 Subject: [PATCH] Added test for headerless table. Updated test cases for latex and html. git-svn-id: http://pandoc.googlecode.com/svn/trunk@1862 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/tables.html | 34 ++++++++++++++++++++++++++++++++++ tests/tables.latex | 22 ++++++++++++++++++++++ tests/tables.native | 20 +++++++++++++++++++- tests/tables.txt | 8 ++++++++ 4 files changed, 83 insertions(+), 1 deletion(-) diff --git a/tests/tables.html b/tests/tables.html index 49b4466..42e3ec3 100644 --- a/tests/tables.html +++ b/tests/tables.html @@ -204,4 +204,38 @@ >Here's another one. Note the blank line between rows.

Table without column headers:

12121212
123123123123
1111
diff --git a/tests/tables.latex b/tests/tables.latex index 0dec7e4..cef7abf 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 aa96731..14931c7 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 73b3b9c..6cf3272 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 +------- ------ ---------- ------- +