cmark

My personal build of CMark ✏️

Commit
fbb5d9ad8d288a1d3b1abfde7c8660facb3b9b04
Parent
d602943b9c4cc94d5809224ec8ecf45cdc8f559e
Author
John MacFarlane <jgm@berkeley.edu>
Date

Do cheaper test first.

Diffstat

1 file changed, 2 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/blocks.c 3 2 1
diff --git a/src/blocks.c b/src/blocks.c
@@ -322,7 +322,8 @@ static cmark_node *finalize(cmark_parser *parser, cmark_node *b) {
       // spaces between them:
       subitem = item->first_child;
       while (subitem) {
-        if (S_ends_with_blank_line(subitem) && (item->next || subitem->next)) {
+        if ((item->next || subitem->next) &&
+            S_ends_with_blank_line(subitem)) {
           b->as.list.tight = false;
           break;
         }