Skip to content

Commit 18b0d05

Browse files
authored
Merge pull request doxygen#11580 from albert-github/feature/bug_empty_table
Tables without any rows result in error in LaTeX
2 parents 59bcc28 + 2bca55c commit 18b0d05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/docnode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4975,6 +4975,7 @@ Token DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &
49754975
{
49764976
children().append<DocHtmlTable>(parser(),thisVariant(),tagHtmlAttribs);
49774977
retval=children().get_last<DocHtmlTable>()->parse();
4978+
if (children().get_last<DocHtmlTable>()->children().empty()) children().pop_back();
49784979
}
49794980
break;
49804981
case HtmlTagType::HTML_TR:
@@ -5270,6 +5271,7 @@ Token DocPara::handleHtmlStartTag(const QCString &tagName,const HtmlAttribList &
52705271
{
52715272
children().append<DocHtmlTable>(parser(),thisVariant(),emptyList);
52725273
retval=children().get_last<DocHtmlTable>()->parseXml();
5274+
if (children().get_last<DocHtmlTable>()->children().empty()) children().pop_back();
52735275
}
52745276
else
52755277
{

0 commit comments

Comments
 (0)