Skip to content

Commit

Permalink
Use SimpleFigure in OpenDocument writer.
Browse files Browse the repository at this point in the history
  • Loading branch information
argent0 committed Jun 29, 2021
1 parent dba428c commit 8765edf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Text/Pandoc/Writers/OpenDocument.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE ViewPatterns #-}
{- |
Module : Text.Pandoc.Writers.OpenDocument
Copyright : Copyright (C) 2008-2020 Andrea Rossato and John MacFarlane
Expand Down Expand Up @@ -377,7 +376,7 @@ blockToOpenDocument o = \case
Plain b -> if null b
then return empty
else inParagraphTags =<< inlinesToOpenDocument o b
Para [Image attr c (s,T.stripPrefix "fig:" -> Just t)] -> figure attr c s t
SimpleFigure attr c (s, t) -> figure attr c s t
Para b -> if null b &&
not (isEnabled Ext_empty_paragraphs o)
then return empty
Expand Down

0 comments on commit 8765edf

Please sign in to comment.