From 9d0b011869d06be2e540feac99070683e10d33da Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 4 Nov 2012 18:33:35 -0800 Subject: RST writer: Don't add ":align: center" to figures. --- src/Text/Pandoc/Writers/RST.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index 4fb00e2b4..f025e6c81 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -149,9 +149,8 @@ blockToRST (Plain inlines) = inlineListToRST inlines blockToRST (Para [Image txt (src,tit)]) = do capt <- inlineListToRST txt let fig = "figure:: " <> text src - let align = ":align: center" let alt = ":alt: " <> if null tit then capt else text tit - return $ hang 3 ".. " $ fig $$ align $$ alt $+$ capt $$ blankline + return $ hang 3 ".. " $ fig $$ alt $+$ capt $$ blankline blockToRST (Para inlines) = do contents <- inlineListToRST inlines return $ contents <> blankline -- cgit v1.2.3