Skip to content

Commit

Permalink
Powerpoint writer: Fix regression in layout for slides with figures.
Browse files Browse the repository at this point in the history
Closes #9442.
  • Loading branch information
jgm committed Feb 9, 2024
1 parent 39327db commit 7b1c520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Text/Pandoc/Writers/Powerpoint/Presentation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ blockToParagraphs (Div (_, classes, _) blks) = let
| otherwise -> Nothing
addIncremental env = env { envInIncrementalDiv = incremental }
in local addIncremental (concatMapM blockToParagraphs blks)
blockToParagraphs (Figure attr capt blks) =
blockToParagraphs (Figure attr capt blks) = -- This never seems to be used:
blockToParagraphs (Shared.figureDiv attr capt blks)
blockToParagraphs hr@HorizontalRule = notRendered hr
blockToParagraphs tbl@Table{} = notRendered tbl
Expand Down Expand Up @@ -649,6 +649,7 @@ plainOrPara _ = Nothing
notText :: Block -> Bool
notText block | startsWithImage block = True
notText Table{} = True
notText Figure{} = True
notText _ = False

startsWithImage :: Block -> Bool
Expand Down

0 comments on commit 7b1c520

Please sign in to comment.