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
This commit is contained in:
parent
1f3b48c193
commit
44bbe5c7de
4 changed files with 83 additions and 1 deletions
|
@ -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
|
||||
>
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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"] ] ] ] ]
|
||||
|
||||
|
|
|
@ -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
|
||||
------- ------ ---------- -------
|
||||
|
||||
|
|
Loading…
Reference in a new issue