Commit 14090e2e93d78c3ceca7f69d24d942d0faddab11

Martin Mitas 2016-10-08T23:30:49

md2html: Output new-line after "</blockquote>".

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md2html/md2html.c b/md2html/md2html.c
index f81874e..854802f 100644
--- a/md2html/md2html.c
+++ b/md2html/md2html.c
@@ -265,7 +265,7 @@ leave_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata)
 
     switch(type) {
         case MD_BLOCK_DOC:      /*noop*/ break;
-        case MD_BLOCK_QUOTE:    MEMBUF_APPEND_LITERAL(out, "</blockquote>"); break;
+        case MD_BLOCK_QUOTE:    MEMBUF_APPEND_LITERAL(out, "</blockquote>\n"); break;
         case MD_BLOCK_HR:       /*noop*/ break;
         case MD_BLOCK_H:        MEMBUF_APPEND_LITERAL(out, head[((MD_BLOCK_H_DETAIL*)detail)->level - 1]); break;
         case MD_BLOCK_CODE:     MEMBUF_APPEND_LITERAL(out, "</code></pre>\n"); break;