git.iko.soy/typeable/pandoc
on master help sign in
Org writer: ensure blank line after figure
d669425Albert Krewinkel
src/Text/Pandoc/Writers/Org.hs+1−1
@@ -160,7 +160,7 @@ blockToOrg (Para [Image attr txt (src,'f':'i':'g':':':tit)]) = do
160 then return empty
160 then return empty
161 else ("#+CAPTION: " <>) `fmap` inlineListToOrg txt
161 else ("#+CAPTION: " <>) `fmap` inlineListToOrg txt
162 img <- inlineToOrg (Image attr txt (src,tit))
162 img <- inlineToOrg (Image attr txt (src,tit))
163− return $ capt $$ img
163+ return $ capt $$ img $$ blankline
164blockToOrg (Para inlines) = do
164blockToOrg (Para inlines) = do
165 contents <- inlineListToOrg inlines
165 contents <- inlineListToOrg inlines
166 return $ contents <> blankline
166 return $ contents <> blankline
tests/writer.org+1
@@ -809,6 +809,7 @@ From "Voyage dans la Lune" by Georges Melies (1902):
809
809
810#+CAPTION: lalune
810#+CAPTION: lalune
811[[lalune.jpg]]
811[[lalune.jpg]]
812+
812Here is a movie [[movie.jpg]] icon.
813Here is a movie [[movie.jpg]] icon.
813
814
814--------------
815--------------