diff options
author | Martin Smith <msmith@trolltech.com> | 2010-04-14 08:46:45 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-04-15 12:11:43 (GMT) |
commit | 6b0e7b394452eaae091ddbce677002a9c3fbaa22 (patch) | |
tree | 7bbd29a9a44cd6daf717ba2c1c4aba20e2221e02 /tools | |
parent | 55262252cb51e09248dfb365ef2a4dde24a717db (diff) | |
download | Qt-6b0e7b394452eaae091ddbce677002a9c3fbaa22.zip Qt-6b0e7b394452eaae091ddbce677002a9c3fbaa22.tar.gz Qt-6b0e7b394452eaae091ddbce677002a9c3fbaa22.tar.bz2 |
qdoc: Checked for empty title.
(cherry picked from commit 4607210dfef3b51933f03deab1037c98cbb8869c)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 6 |
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) |