aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/RTF.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/RTF.hs b/src/Text/Pandoc/Readers/RTF.hs
index 956acf5cd..fde444854 100644
--- a/src/Text/Pandoc/Readers/RTF.hs
+++ b/src/Text/Pandoc/Readers/RTF.hs
@@ -558,8 +558,9 @@ processTok bs (Tok pos tok') = do
TableRow (curCell : cs) : rs
[] -> [TableRow [curCell]] -- shouldn't happen
, sCurrentCell = mempty }
- ControlWord "intbl" _ ->
- emitBlocks bs <* modifyGroup (\g -> g{ gInTable = True })
+ ControlWord "intbl" _ -> do
+ ls <- closeLists 0 -- see #11364
+ ((ls <>) <$> emitBlocks bs) <* modifyGroup (\g -> g{ gInTable = True })
ControlWord "plain" _ -> bs <$ modifyGroup (const def)
ControlWord "lquote" _ -> bs <$ addText "\x2018"
ControlWord "rquote" _ -> bs <$ addText "\x2019"