Skip to content

Commit 9b681d6

Browse files
committed
issue doxygen#11401 Unexpected html tag <span> found within <dt> context
Support `<span>` tag analogous to other style change tags (like `<b>`).
1 parent 7febced commit 9b681d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/docparser.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,16 @@ bool DocParser::defaultHandleToken(DocNodeVariant *parent,Token tok, DocNodeList
14551455
case HtmlTagType::HTML_PRE:
14561456
warn_doc_error(context.fileName,tokenizer.getLineNr(),"found <pre> tag in heading");
14571457
break;
1458+
case HtmlTagType::HTML_SPAN:
1459+
if (!context.token->endTag)
1460+
{
1461+
handleStyleEnter(parent,children,DocStyleChange::Span,tokenName,&context.token->attribs);
1462+
}
1463+
else
1464+
{
1465+
handleStyleLeave(parent,children,DocStyleChange::Span,tokenName);
1466+
}
1467+
break;
14581468
case HtmlTagType::HTML_BOLD:
14591469
if (!context.token->endTag)
14601470
{

0 commit comments

Comments
 (0)