Skip to content

Commit f1a5c62

Browse files
committed
issue #10504 A list inside an alias on a markdown page seems broken, it repeats the alias indefinitely
Small, last minute, change (print statement was changed in continue, but continue will miss the switch to the next parent) was not tested properly.
1 parent f559aad commit f1a5c62

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/docnode.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5385,11 +5385,7 @@ int DocPara::parse()
53855385
bool rerun = false;
53865386
while (n)
53875387
{
5388-
if (std::get_if<DocAutoListItem>(n))
5389-
{
5390-
continue;
5391-
}
5392-
else if (std::get_if<DocAutoList>(n))
5388+
if (std::get_if<DocAutoList>(n))
53935389
{
53945390
const DocAutoList *al = std::get_if<DocAutoList>(n);
53955391
indent = al->indent();
@@ -5414,7 +5410,7 @@ int DocPara::parse()
54145410
break;
54155411
}
54165412
}
5417-
else
5413+
else if (!std::get_if<DocAutoListItem>(n))
54185414
{
54195415
break;
54205416
}

0 commit comments

Comments
 (0)