QDoc: Add extra tags when no HTML.endheader is specified.

The default Qt template inserts </head><body> with some arguments in the header of the HTML document.
When you don't specify the HTML.endheader qdocconf variable those tags will not be generated and the
QTextBrowser-based view in Qt Assistant will not be able to render the documentation.

Change-Id: Ieee231f300e1dc71d6b6343771d2682b3de96d73
Reviewed-by: Pierre Rossi <pierre.rossi@nokia.com>
This commit is contained in:
Casper van Donderen 2012-08-01 19:10:47 +02:00 committed by Qt by Nokia
parent 5ac4a1304b
commit 17a68ee65b

View File

@ -1846,7 +1846,10 @@ void HtmlGenerator::generateHeader(const QString& title,
// Include style sheet and script links.
out() << headerStyles;
out() << headerScripts;
out() << endHeader;
if (endHeader.isEmpty())
out() << "</head>\n<body>\n";
else
out() << endHeader;
#ifdef GENERATE_MAC_REFS
if (mainPage)