summaryrefslogtreecommitdiff
path: root/src/commonmark.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-12 13:46:35 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-12 13:46:35 -0700
commit6ecd359a195d3dce3c093cc955936e4ed954b48d (patch)
treeae859726c27619330143bab587ab473042772cf0 /src/commonmark.c
parentd64b1d286960ddf59df8dda9ab749b27a72ed6d1 (diff)
cmark_render: ensure final newline.
This allows us to remove direct manipulation of buffer from the latex and commonmark renderers.
Diffstat (limited to 'src/commonmark.c')
-rw-r--r--src/commonmark.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 44f8788..09644a0 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -195,9 +195,6 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
switch (node->type) {
case CMARK_NODE_DOCUMENT:
- if (!entering) {
- cmark_strbuf_putc(renderer->buffer, '\n');
- }
break;
case CMARK_NODE_BLOCK_QUOTE: