From 6b0e7b394452eaae091ddbce677002a9c3fbaa22 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Wed, 14 Apr 2010 10:46:45 +0200 Subject: qdoc: Checked for empty title. (cherry picked from commit 4607210dfef3b51933f03deab1037c98cbb8869c) --- tools/qdoc3/htmlgenerator.cpp | 6 ++++-- 1 file 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() << "

" << protectEnc(title); + if (!title.isEmpty()) + out() << "

" << protectEnc(title); if (!subTitle.isEmpty()) { out() << "
"; if (subTitleSize == SmallSubTitle) @@ -1899,7 +1900,8 @@ void HtmlGenerator::generateTitle(const QString& title, generateText(subTitle, relative, marker); out() << "\n"; } - out() << "

\n"; + if (!title.isEmpty()) + out() << "\n"; } void HtmlGenerator::generateFooter(const Node *node) -- cgit v0.12