aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-03-19 08:29:19 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-03-19 08:29:19 -0700
commit2894df7b76776c0418be217539e27a9acb67f7fa (patch)
treebc9a9dc3191f7b341867e5638a3a7822c89ed9e5
parent1db909e49bca332800bd6de38c22722ea559d40f (diff)
downloadpandoc-2894df7b76776c0418be217539e27a9acb67f7fa.tar.gz
Added test for one column table in LaTeX.
-rw-r--r--tests/latex-reader.latex7
-rw-r--r--tests/latex-reader.native5
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/latex-reader.latex b/tests/latex-reader.latex
index 119ad0881..cd424baec 100644
--- a/tests/latex-reader.latex
+++ b/tests/latex-reader.latex
@@ -631,6 +631,13 @@ Dog & 2 \\
Cat & 1 \\ \hline
\end{tabular}
+A table with one column:
+
+\begin{tabular}{c}
+Animal \\
+Vegetable
+\end{tabular}
+
\begin{center}\rule{3in}{0.4pt}\end{center}
\section{Special Characters}
diff --git a/tests/latex-reader.native b/tests/latex-reader.native
index c6f6ce500..2873529ae 100644
--- a/tests/latex-reader.native
+++ b/tests/latex-reader.native
@@ -281,6 +281,11 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA
,[Plain [Str "2"]]]
,[[Plain [Str "Cat"]]
,[Plain [Str "1"]]]]
+,Para [Str "A",Space,Str "table",Space,Str "with",Space,Str "one",Space,Str "column:"]
+,Table [] [AlignCenter] [0.0]
+ [[]]
+ [[[Plain [Str "Animal"]]]
+ ,[[Plain [Str "Vegetable"]]]]
,HorizontalRule
,Header 1 [Str "Special",Space,Str "Characters"]
,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]