From e22f3b777dd53e587db6dba76e86bf3276ad619f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 22 Nov 2014 20:48:16 -0800 Subject: C html renderer: ensure newline before hr or raw html block. --- src/html/html.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/html') diff --git a/src/html/html.c b/src/html/html.c index 4fa79b1..889941c 100644 --- a/src/html/html.c +++ b/src/html/html.c @@ -181,10 +181,12 @@ static void node_to_html(strbuf *html, cmark_node *node) } case NODE_HTML: + cr(html); strbuf_put(html, cur->string_content.ptr, cur->string_content.size); break; case NODE_HRULE: + cr(html); strbuf_puts(html, "
\n"); break; -- cgit v1.2.3