From 0eb3f8cff2c48150e9263b17faeacb636549ccdc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 15 Dec 2014 21:49:16 -0800 Subject: HTML writer: put newline btw img and caption paragraph. --- src/Text/Pandoc/Writers/HTML.hs | 2 +- tests/writer.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 1760ee006..46974930e 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -438,7 +438,7 @@ blockToHtml opts (Para [Image txt (s,'f':'i':'g':':':tit)]) = do then H5.figure $ mconcat [nl opts, img, capt, nl opts] else H.div ! A.class_ "figure" $ mconcat - [nl opts, img, capt, nl opts] + [nl opts, img, nl opts, capt, nl opts] blockToHtml opts (Para lst) = do contents <- inlineListToHtml opts lst return $ H.p contents diff --git a/tests/writer.html b/tests/writer.html index b56e81292..34da66835 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -524,7 +524,8 @@ document.write(''+e+'<\

Images

From “Voyage dans la Lune” by Georges Melies (1902):

-lalune

lalune

+lalune +

lalune

Here is a movie movie icon.


-- cgit v1.2.3