summaryrefslogtreecommitdiff
path: root/src/blocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocks.c')
-rw-r--r--src/blocks.c4
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));