Skip to content

Commit 4a3b402

Browse files
committed
Use SimpleFigure in OpenDocument writer.
1 parent 242ebe0 commit 4a3b402

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Text/Pandoc/Writers/OpenDocument.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{-# LANGUAGE LambdaCase #-}
33
{-# LANGUAGE OverloadedStrings #-}
44
{-# LANGUAGE PatternGuards #-}
5-
{-# LANGUAGE ViewPatterns #-}
65
{- |
76
Module : Text.Pandoc.Writers.OpenDocument
87
Copyright : Copyright (C) 2008-2020 Andrea Rossato and John MacFarlane
@@ -377,7 +376,7 @@ blockToOpenDocument o = \case
377376
Plain b -> if null b
378377
then return empty
379378
else inParagraphTags =<< inlinesToOpenDocument o b
380-
Para [Image attr c (s,T.stripPrefix "fig:" -> Just t)] -> figure attr c s t
379+
SimpleFigure attr c (s, t) -> figure attr c s t
381380
Para b -> if null b &&
382381
not (isEnabled Ext_empty_paragraphs o)
383382
then return empty

0 commit comments

Comments
 (0)