mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 03:06:30 +00:00
Docx reader: avoid emitting empty paragraph where caption was.
This commit is contained in:
@@ -762,9 +762,9 @@ bodyPartToBlocks (ListItem pPr _ _ _ parparts) =
|
||||
in
|
||||
bodyPartToBlocks $ Paragraph pPr' parparts
|
||||
bodyPartToBlocks (TblCaption _ _) =
|
||||
return $ para mempty -- collected separately
|
||||
return mempty
|
||||
bodyPartToBlocks (Tbl _ _ _ []) =
|
||||
return $ para mempty
|
||||
return mempty
|
||||
bodyPartToBlocks (Tbl cap grid look parts) = do
|
||||
captions <- gets docxTableCaptions
|
||||
fullCaption <- case captions of
|
||||
|
||||
Reference in New Issue
Block a user