summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-11-25 15:08:10 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-11-25 15:08:10 -0800
commitb27230bb57db6aa0b6a33beeb0a976aa009647eb (patch)
treeaf9deb9c88b88c5e8e4a3979bdcf2d760d490f2a /src/print.c
parenta5a55657ad8c1da1e17eda8e0a321612e61c311e (diff)
`print.c` - make `document` node implicit.
It doesn't add information and just increases the indent level of everything else.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index 9e5a90e..8847d12 100644
--- a/src/print.c
+++ b/src/print.c
@@ -107,8 +107,7 @@ static void print_blocks(cmark_node* b, int indent)
switch(b->type) {
case NODE_DOCUMENT:
- printf("document\n");
- print_blocks(b->first_child, indent + 2);
+ print_blocks(b->first_child, 0);
break;
case NODE_BLOCK_QUOTE:
printf("block_quote\n");