mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-22 07:25:36 +00:00
RTF reader: fix bug where list items were...
...incorporated into a following table. Closes #11364.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user