Skip to content

Commit 104c809

Browse files
committed
issue doxygen#11320 Documentation fails to build (it freezes, no crash)
1 parent 3d86787 commit 104c809

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/docparser.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,11 +605,14 @@ Token DocParser::handleStyleArgument(DocNodeVariant *parent,DocNodeList &childre
605605
{
606606
case TokenRetval::TK_HTMLTAG:
607607
if (insideLI(parent) && Mappers::htmlTagMapper->map(context.token->name)!=HtmlTagType::UNKNOWN && context.token->endTag)
608-
{ // ignore </li> as the end of a style command
609-
continue;
608+
{
609+
// ignore </li> as the end of a style command
610+
}
611+
else
612+
{
613+
AUTO_TRACE_EXIT("end tok={}",tok.to_string());
614+
return tok;
610615
}
611-
AUTO_TRACE_EXIT("end tok={}",tok.to_string());
612-
return tok;
613616
break;
614617
default:
615618
errorHandleDefaultToken(parent,tok,children,"\\" + saveCmdName + " command");

0 commit comments

Comments
 (0)