From b27230bb57db6aa0b6a33beeb0a976aa009647eb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 25 Nov 2014 15:08:10 -0800 Subject: `print.c` - make `document` node implicit. It doesn't add information and just increases the indent level of everything else. --- src/print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3