Skip to content

Commit e074baf

Browse files
committed
Use SimpleFigure in Texinfo writer.
1 parent 8765edf commit e074baf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Text/Pandoc/Writers/Texinfo.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ blockToTexinfo (Plain lst) =
123123
inlineListToTexinfo lst
124124

125125
-- title beginning with fig: indicates that the image is a figure
126-
blockToTexinfo (Para [Image attr txt (src,tgt)])
127-
| Just tit <- T.stripPrefix "fig:" tgt = do
126+
blockToTexinfo (SimpleFigure attr txt (src, tit)) = do
128127
capt <- if null txt
129128
then return empty
130129
else (\c -> text "@caption" <> braces c) `fmap`

0 commit comments

Comments
 (0)