cmark

My personal build of CMark ✏️

Commit
b0a3cb9b4381ecaf97d3b8e37f30b78b7cf2d410
Parent
628abc38424b009582fa1443565101f103b99043
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #237 from nwellnhof/fix_last_line_blank

Fix last_line_blank logic

Diffstat

1 file changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/blocks.c 4 2 2
diff --git 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));