From fbb5d9ad8d288a1d3b1abfde7c8660facb3b9b04 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 17 Mar 2019 12:52:57 -0700 Subject: Do cheaper test first. --- src/blocks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/blocks.c') diff --git a/src/blocks.c b/src/blocks.c index 95d3cff..53bdb19 100644 --- 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; } -- cgit v1.2.3