Skip to content

Commit fbb5d9a

Browse files
committed
Do cheaper test first.
1 parent d602943 commit fbb5d9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/blocks.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ static cmark_node *finalize(cmark_parser *parser, cmark_node *b) {
322322
// spaces between them:
323323
subitem = item->first_child;
324324
while (subitem) {
325-
if (S_ends_with_blank_line(subitem) && (item->next || subitem->next)) {
325+
if ((item->next || subitem->next) &&
326+
S_ends_with_blank_line(subitem)) {
326327
b->as.list.tight = false;
327328
break;
328329
}

0 commit comments

Comments
 (0)