summaryrefslogtreecommitdiff
path: root/src/qdoc/htmlgenerator.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-01-05 09:49:01 +0100
committerPaul Wicking <paul.wicking@qt.io>2020-01-05 21:00:00 +0100
commit82c44b81dc414ca8f6093bdd0379c93b95d2d610 (patch)
treeb28b1f357b3bef33ae0844510bf7f4194bf8f45b /src/qdoc/htmlgenerator.cpp
parent4970167b75fb83bd46227d9d9315b6e215c8e457 (diff)
downloadqttools-82c44b81dc414ca8f6093bdd0379c93b95d2d610.tar.gz
QDoc: Use html5 charset declaration
As we claim the html is html5 compliant (<!doctype html>), use the html5 charset declaration instead of html 4.01 style. Also, drop the trailing '/' (no need to close meta element). Update all test content to match the new output. Task-number: QTBUG-73026 Change-Id: I4cf58a342a2bfb9e76245bd3fb91525e6e59f622 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/htmlgenerator.cpp')
-rw-r--r--src/qdoc/htmlgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/htmlgenerator.cpp b/src/qdoc/htmlgenerator.cpp
index b38f55fd1..b7dc227ca 100644
--- a/src/qdoc/htmlgenerator.cpp
+++ b/src/qdoc/htmlgenerator.cpp
@@ -1833,7 +1833,7 @@ void HtmlGenerator::generateHeader(const QString &title, const Node *node, CodeM
out() << "<!DOCTYPE html>\n";
out() << QString("<html lang=\"%1\">\n").arg(naturalLanguage);
out() << "<head>\n";
- out() << " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
+ out() << " <meta charset=\"utf-8\">\n";
if (node && !node->doc().location().isEmpty())
out() << "<!-- " << node->doc().location().fileName() << " -->\n";