Skip to content

Commit

Permalink
Added test for headerless table.
Browse files Browse the repository at this point in the history
Updated test cases for latex and html.

git-svn-id: http://pandoc.googlecode.com/svn/trunk@1862 788f1e2b-df1e-0410-8736-df70ead52e1b
  • Loading branch information
fiddlosopher committed Mar 7, 2010
1 parent d07891c commit 6c9c307
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
34 changes: 34 additions & 0 deletions tests/tables.html
Expand Up @@ -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
>
22 changes: 22 additions & 0 deletions tests/tables.latex
Expand Up @@ -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}

20 changes: 19 additions & 1 deletion tests/tables.native
Expand Up @@ -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"] ] ] ] ]

8 changes: 8 additions & 0 deletions tests/tables.txt
Expand Up @@ -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
------- ------ ---------- -------

0 comments on commit 6c9c307

Please sign in to comment.