summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-17 12:36:30 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-17 12:36:30 (GMT)
commitf2e96034620007f7ef2e2c66845237814e80d356 (patch)
treeafb36454a6f51cd96324319860a816e0272f219c /src
parent43e67dce8c164df469e725deb94db582d9cfc69b (diff)
downloadDoxygen-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.cpp11
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";
}