diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-12-08 18:46:44 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-12-08 18:46:44 +0100 |
commit | 51687ea592332264a3858ab725acf5187412401a (patch) | |
tree | 3ae065b0911e3bc5e2b4b20fb1ac3f0fba1951e6 | |
parent | 628abc38424b009582fa1443565101f103b99043 (diff) |
Fix last_line_blank logic
The broken last_line_blank logic could lead to random failures in the
API tests.
-rw-r--r-- | src/blocks.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |