From 51687ea592332264a3858ab725acf5187412401a Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Mon, 8 Dec 2014 18:46:44 +0100 Subject: Fix last_line_blank logic The broken last_line_blank logic could lead to random failures in the API tests. --- src/blocks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/blocks.c') diff --git a/src/blocks.c b/src/blocks.c index deca00a..ebef88b 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -789,8 +789,8 @@ S_process_line(cmark_parser *parser, const unsigned char *buffer, size_t bytes) container->last_line_blank = (blank && container->type != NODE_BLOCK_QUOTE && container->type != NODE_HEADER && - (container->type != NODE_CODE_BLOCK && - container->as.code.fenced) && + !(container->type == NODE_CODE_BLOCK && + container->as.code.fenced) && !(container->type == NODE_LIST_ITEM && container->first_child == NULL && container->start_line == parser->line_number)); -- cgit v1.2.3