git.iko.soy/typeable/pandoc
on master help sign in
AsciiDoc writer: insert some needed blank lines.

Closes #1860.

commit451019290b01dac359ae5d7b55e4fd5829ed9faa authorJohn MacFarlane <jgm@berkeley.edu> dateSun 15 Mar 2015, 14:48 (12 years ago) parentf6e46b7
2 files changed+6−1
src/Text/Pandoc/Writers/AsciiDoc.hs+1−1 tests/writer.asciidoc+5
src/Text/Pandoc/Writers/AsciiDoc.hs+1−1
@@ -126,7 +126,7 @@ blockToAsciiDoc :: WriterOptions -- ^ Options
126126blockToAsciiDoc _ Null = return empty
127127blockToAsciiDoc opts (Plain inlines) = do
128128 contents <- inlineListToAsciiDoc opts inlines
129− return $ contents <> cr
129+ return $ contents <> blankline
130130blockToAsciiDoc opts (Para [Image alt (src,'f':'i':'g':':':tit)]) = do
131131 blockToAsciiDoc opts (Para [Image alt (src,tit)])
132132blockToAsciiDoc opts (Para inlines) = do
tests/writer.asciidoc+5
@@ -375,15 +375,19 @@ HTML Blocks
375375Simple block on one line:
376376
377377foo
378+
378379And nested without indentation:
379380
380381foo
381382
382383bar
384+
383385Interpreted markdown in a table:
384386
385387This is _emphasized_
388+
386389And this is *strong*
390+
387391Here’s a simple block:
388392
389393foo
@@ -405,6 +409,7 @@ As should this:
405409Now, nested:
406410
407411foo
412+
408413This should just be an HTML comment:
409414
410415Multiline: