aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-22 20:48:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-22 20:48:16 -0800
commite22f3b777dd53e587db6dba76e86bf3276ad619f (patch)
tree1a5a9646a11b0f85121a29e36bf862a11c02b447 /src
parent2ee9df94fc9543a878e4c5a4593154913a74eb07 (diff)
C html renderer: ensure newline before hr or raw html block.
Diffstat (limited to 'src')
-rw-r--r--src/html/html.c2
1 files changed, 2 insertions, 0 deletions
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, "<hr />\n");
break;