summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-08 15:58:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-08 15:58:16 -0800
commitb0a3cb9b4381ecaf97d3b8e37f30b78b7cf2d410 (patch)
tree3ae065b0911e3bc5e2b4b20fb1ac3f0fba1951e6 /src
parent628abc38424b009582fa1443565101f103b99043 (diff)
parent51687ea592332264a3858ab725acf5187412401a (diff)
Merge pull request #237 from nwellnhof/fix_last_line_blank
Fix last_line_blank logic
Diffstat (limited to 'src')
-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));