Skip to content

Commit

Permalink
FIXED: Fix edge case in loose vs tight list determination
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher committed Aug 13, 2024
1 parent ae0ab24 commit 79286d7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/mmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1854,9 +1854,14 @@ void is_list_loose(token * list) {

while (walker->next != NULL) {
if (walker->type == BLOCK_EMPTY) {
if (walker->next->type == BLOCK_PARA) {
loose = true;
}
// TODO: This switch statement is probably not all-inclusive
switch (walker->next->type) {
case BLOCK_PARA:
case BLOCK_TABLE:
loose = true;
default:
break;
}
}

walker = walker->next;
Expand Down

0 comments on commit 79286d7

Please sign in to comment.