aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Writers/RST.hs3
-rw-r--r--tests/writer.rst1
2 files changed, 1 insertions, 3 deletions
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
diff --git a/tests/writer.rst b/tests/writer.rst
index 8d7c7915c..09b301613 100644
--- a/tests/writer.rst
+++ b/tests/writer.rst
@@ -776,7 +776,6 @@ Images
From “Voyage dans la Lune” by Georges Melies (1902):
.. figure:: lalune.jpg
- :align: center
:alt: Voyage dans la Lune
lalune