summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/qdoc3/htmlgenerator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 29681dc..974a104 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -1889,7 +1889,8 @@ void HtmlGenerator::generateTitle(const QString& title,
const Node *relative,
CodeMarker *marker)
{
- out() << "<h1 class=\"title\">" << protectEnc(title);
+ if (!title.isEmpty())
+ out() << "<h1 class=\"title\">" << protectEnc(title);
if (!subTitle.isEmpty()) {
out() << "<br />";
if (subTitleSize == SmallSubTitle)
@@ -1899,7 +1900,8 @@ void HtmlGenerator::generateTitle(const QString& title,
generateText(subTitle, relative, marker);
out() << "</span>\n";
}
- out() << "</h1>\n";
+ if (!title.isEmpty())
+ out() << "</h1>\n";
}
void HtmlGenerator::generateFooter(const Node *node)