Skip to content

Commit 915745a

Browse files
committed
Issue doxygen#11607 Broken HTML tables
Catching end tags for `<thead>`, <tfoot> and `<tbody>` as well so they won't throw a warning:w
1 parent b9d7d16 commit 915745a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/docnode.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,18 @@ Token DocHtmlTable::parse()
22142214
{
22152215
retval = Token::make_RetVal_EndTable();
22162216
}
2217+
else if (tagId==HtmlTagType::HTML_TBODY && parser()->context.token->endTag)
2218+
{
2219+
// for time being ignore </t....> tag
2220+
}
2221+
else if (tagId==HtmlTagType::HTML_THEAD && parser()->context.token->endTag)
2222+
{
2223+
// for time being ignore </t....> tag
2224+
}
2225+
else if (tagId==HtmlTagType::HTML_TFOOT && parser()->context.token->endTag)
2226+
{
2227+
// for time being ignore </t....> tag
2228+
}
22172229
else // found some other tag
22182230
{
22192231
warn_doc_error(parser()->context.fileName,parser()->tokenizer.getLineNr(),"expected <tr> or </table> tag but "

0 commit comments

Comments
 (0)