From 3d7120083a8721e3729d44cd8d46275093437ed3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 10 Aug 2021 11:09:12 -0700 Subject: Fix RTF table parsing bug that created undesired nested tables. Closes #7488. --- src/Text/Pandoc/Readers/RTF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/RTF.hs b/src/Text/Pandoc/Readers/RTF.hs index 749a38dd3..0e7fbac5a 100644 --- a/src/Text/Pandoc/Readers/RTF.hs +++ b/src/Text/Pandoc/Readers/RTF.hs @@ -648,7 +648,7 @@ emitBlocks bs = do let prop = case annotatedToks of [] -> def ((p,_):_) -> p - tbl <- if gInTable prop + tbl <- if gInTable prop || null annotatedToks then pure mempty else closeTable new <- -- cgit v1.2.3