Skip to content

Commit 8c85fbb

Browse files
committed
Powerpoint writer: Fix regression in layout for slides with figures.
Closes #9442.
1 parent 0604fa2 commit 8c85fbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Text/Pandoc/Writers/Powerpoint/Presentation.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ blockToParagraphs (Div (_, classes, _) blks) = let
537537
| otherwise -> Nothing
538538
addIncremental env = env { envInIncrementalDiv = incremental }
539539
in local addIncremental (concatMapM blockToParagraphs blks)
540-
blockToParagraphs (Figure attr capt blks) =
540+
blockToParagraphs (Figure attr capt blks) = -- This never seems to be used:
541541
blockToParagraphs (Shared.figureDiv attr capt blks)
542542
blockToParagraphs hr@HorizontalRule = notRendered hr
543543
blockToParagraphs tbl@Table{} = notRendered tbl
@@ -649,6 +649,7 @@ plainOrPara _ = Nothing
649649
notText :: Block -> Bool
650650
notText block | startsWithImage block = True
651651
notText Table{} = True
652+
notText Figure{} = True
652653
notText _ = False
653654

654655
startsWithImage :: Block -> Bool

0 commit comments

Comments
 (0)