diff options
author | albert-github <albert.tests@gmail.com> | 2018-12-17 12:36:30 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-12-17 12:36:30 (GMT) |
commit | f2e96034620007f7ef2e2c66845237814e80d356 (patch) | |
tree | afb36454a6f51cd96324319860a816e0272f219c /src | |
parent | 43e67dce8c164df469e725deb94db582d9cfc69b (diff) | |
download | Doxygen-f2e96034620007f7ef2e2c66845237814e80d356.zip Doxygen-f2e96034620007f7ef2e2c66845237814e80d356.tar.gz Doxygen-f2e96034620007f7ef2e2c66845237814e80d356.tar.bz2 |
Prevent empty page list table (XHTML)
The table (tag) should only be written in case a table has at least one row, otherwise a non valid table is generated (XHTML)
Diffstat (limited to 'src')
-rw-r--r-- | src/ftvhelp.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp index 73ac775..ea57eb7 100644 --- a/src/ftvhelp.cpp +++ b/src/ftvhelp.cpp @@ -828,10 +828,13 @@ void FTVHelp::generateTreeViewInline(FTextStream &t) } //printf("preferred depth=%d\n",preferredDepth); - t << "<table class=\"directory\">\n"; - int index=0; - generateTree(t,m_indentNodes[0],0,preferredDepth,index); - t << "</table>\n"; + if (m_indentNodes[0].count()) + { + t << "<table class=\"directory\">\n"; + int index=0; + generateTree(t,m_indentNodes[0],0,preferredDepth,index); + t << "</table>\n"; + } t << "</div><!-- directory -->\n"; } |