aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-02-09 14:16:08 -0800
committerJohn MacFarlane <[email protected]>2024-02-09 16:39:56 -0800
commit8c85fbbf2efbe783abc866bbed46254af8f8ac2a (patch)
tree2bf4fe4c2b0b5caf93410de472c417e8d924d70a /src
parent0604fa297dfdacf32cd8360a0c48651e45c9e566 (diff)
Powerpoint writer: Fix regression in layout for slides with figures.
Closes #9442.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Powerpoint/Presentation.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Powerpoint/Presentation.hs b/src/Text/Pandoc/Writers/Powerpoint/Presentation.hs
index f3f00da50..fb07d8810 100644
--- a/src/Text/Pandoc/Writers/Powerpoint/Presentation.hs
+++ b/src/Text/Pandoc/Writers/Powerpoint/Presentation.hs
@@ -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
@@ -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