diff options
author | Martin Smith <msmith@trolltech.com> | 2010-04-14 08:46:45 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-04-14 08:46:45 (GMT) |
commit | 4607210dfef3b51933f03deab1037c98cbb8869c (patch) | |
tree | db72728b2c2fa8707ab7a844c1f07802744dab33 /tools | |
parent | 61726600cc7d6412a3d25674a4f785c23c8a8f64 (diff) | |
download | Qt-4607210dfef3b51933f03deab1037c98cbb8869c.zip Qt-4607210dfef3b51933f03deab1037c98cbb8869c.tar.gz Qt-4607210dfef3b51933f03deab1037c98cbb8869c.tar.bz2 |
qdoc: Checked for empty title.
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 57c3ba2..e7f6d56 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1891,7 +1891,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) @@ -1901,7 +1902,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) |