mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 18:26:36 +00:00
Use the original tail instead of deconstructing and reconstructing it (#6678)
This commit is contained in:
@@ -854,8 +854,8 @@ blocksToOpenXML opts = fmap concat . mapM (blockToOpenXML opts) . separateTables
|
||||
-- them. See #4315.
|
||||
separateTables :: [Block] -> [Block]
|
||||
separateTables [] = []
|
||||
separateTables (x@Table{}:y@Table{}:zs) =
|
||||
x : RawBlock (Format "openxml") "<w:p />" : separateTables (y:zs)
|
||||
separateTables (x@Table{}:xs@(Table{}:_)) =
|
||||
x : RawBlock (Format "openxml") "<w:p />" : separateTables xs
|
||||
separateTables (x:xs) = x : separateTables xs
|
||||
|
||||
pStyleM :: (PandocMonad m) => ParaStyleName -> WS m XML.Element
|
||||
|
||||
Reference in New Issue
Block a user