aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-25 12:24:14 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-25 12:24:14 -0800
commitdc92a628833a3bf8f528c480fac80d926f63f9b6 (patch)
tree8d8c6920161e0541af587f58474acb964d3f73d1 /src/Text
parent6c0943000d4a4fd6f7b88c9dbafa61bdb8b35eef (diff)
downloadpandoc-dc92a628833a3bf8f528c480fac80d926f63f9b6.tar.gz
RST writer: Ensure blank line after figure.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/RST.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs
index a8d0027f8..40d6fdf18 100644
--- a/src/Text/Pandoc/Writers/RST.hs
+++ b/src/Text/Pandoc/Writers/RST.hs
@@ -173,7 +173,7 @@ blockToRST (Para [Image txt (src,'f':'i':'g':':':tit)]) = do
capt <- inlineListToRST txt
let fig = "figure:: " <> text src
let alt = ":alt: " <> if null tit then capt else text tit
- return $ hang 3 ".. " $ fig $$ alt $+$ capt $$ blankline
+ return $ hang 3 ".. " (fig $$ alt $+$ capt) $$ blankline
blockToRST (Para inlines)
| LineBreak `elem` inlines = do -- use line block if LineBreaks
lns <- mapM inlineListToRST $ splitBy (==LineBreak) inlines