From 499fc11fca83cf4991cb9bce223fa3d046d4fa68 Mon Sep 17 00:00:00 2001 From: "Laurent P. René de Cotret" Date: Sat, 8 Aug 2020 01:45:47 -0400 Subject: [Latex Reader] Table cell parser not consuming spaces correctly (#6597) * Added test to replicate (#6596) * Table cell reader not consuming spaces correctly (#6596) --- src/Text/Pandoc/Readers/LaTeX.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index af00813b6..9ab4b3cb8 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -2387,9 +2387,11 @@ parseTableRow envname prefsufs = do parseTableCell :: PandocMonad m => LP m Cell parseTableCell = do + spaces updateState $ \st -> st{ sInTableCell = True } cell' <- parseMultiCell <|> parseSimpleCell updateState $ \st -> st{ sInTableCell = False } + spaces return cell' cellAlignment :: PandocMonad m => LP m Alignment -- cgit v1.2.3