Powerpoint writer: Avoid overlapping blocks in column output.
Just as a slide can't have an image and text on the same slide because of overlapping, we can't have both in a single column. We run splitBlocks on the text in the column and discard the rest.
This commit is contained in:
parent
64c4451ef3
commit
90dcd0bc87
1 changed files with 10 additions and 2 deletions
|
@ -624,8 +624,16 @@ blocksToSlide' _ (blk : blks)
|
|||
(mapM (P.report . BlockNotRendered) blks >> return ())
|
||||
unless (null remaining)
|
||||
(mapM (P.report . BlockNotRendered) remaining >> return ())
|
||||
shapesL <- blocksToShapes blksL
|
||||
shapesR <- blocksToShapes blksR
|
||||
mbSplitBlksL <- splitBlocks blksL
|
||||
mbSplitBlksR <- splitBlocks blksR
|
||||
let blksL' = case mbSplitBlksL of
|
||||
bs : _ -> bs
|
||||
[] -> []
|
||||
let blksR' = case mbSplitBlksR of
|
||||
bs : _ -> bs
|
||||
[] -> []
|
||||
shapesL <- blocksToShapes blksL'
|
||||
shapesR <- blocksToShapes blksR'
|
||||
return $ TwoColumnSlide { twoColumnSlideHeader = []
|
||||
, twoColumnSlideLeft = shapesL
|
||||
, twoColumnSlideRight = shapesR
|
||||
|
|
Loading…
Reference in a new issue