aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLaurent P. René de Cotret <LaurentRDC@users.noreply.github.com>2020-08-08 01:45:47 -0400
committerGitHub <noreply@github.com>2020-08-07 22:45:47 -0700
commit499fc11fca83cf4991cb9bce223fa3d046d4fa68 (patch)
treefdb6f879fd549d86b38e4c2798d6cb902744c1c0 /test
parentbed62fcf17a38765d70fe4ab51ba1742f42fe056 (diff)
downloadpandoc-499fc11fca83cf4991cb9bce223fa3d046d4fa68.tar.gz
[Latex Reader] Table cell parser not consuming spaces correctly (#6597)
* Added test to replicate (#6596) * Table cell reader not consuming spaces correctly (#6596)
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/LaTeX.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Tests/Readers/LaTeX.hs b/test/Tests/Readers/LaTeX.hs
index 74906fab4..a8d969659 100644
--- a/test/Tests/Readers/LaTeX.hs
+++ b/test/Tests/Readers/LaTeX.hs
@@ -148,6 +148,13 @@ tests = [ testGroup "tokenization"
, simpleCell (plain "Two")
]
]
+ , "table with multicolumn item (#6596)" =:
+ "\\begin{tabular}{l c r}One & \\multicolumn{2}{c}{Two} & \\\\ \\end{tabular}" =?>
+ table' [AlignLeft, AlignCenter, AlignRight]
+ [ Row nullAttr [ simpleCell (plain "One")
+ , cell AlignCenter (RowSpan 1) (ColSpan 2) (plain "Two")
+ ]
+ ]
, "Table with multirow item" =:
T.unlines ["\\begin{tabular}{c}"
,"\\multirow{2}{c}{One}\\\\Two\\\\"