summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-14 08:53:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-14 08:53:05 -0800
commit1014764a109e7f8f47d466080962f5f344287277 (patch)
treee22ffd8894d0bfe5782f473157335366585f9493
parent66e986ec02c417ba9387dbf906381bba598c3f00 (diff)
Added empty clauses for DOCUMENT node to html and man writers.
For completeness.
-rw-r--r--src/html.c3
-rw-r--r--src/man.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/html.c b/src/html.c
index a77cd21..e733a48 100644
--- a/src/html.c
+++ b/src/html.c
@@ -77,6 +77,9 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
}
switch (node->type) {
+ case CMARK_NODE_DOCUMENT:
+ break;
+
case CMARK_NODE_BLOCK_QUOTE:
if (entering) {
cr(html);
diff --git a/src/man.c b/src/man.c
index 3058b25..31247cb 100644
--- a/src/man.c
+++ b/src/man.c
@@ -76,6 +76,9 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
}
switch (node->type) {
+ case CMARK_NODE_DOCUMENT:
+ break;
+
case CMARK_NODE_BLOCK_QUOTE:
if (entering) {
cr(man);