From a69084bf1d29f1c1a1c1fccd4d6ef008efbdd49e Mon Sep 17 00:00:00 2001 From: David Boddie Date: Tue, 10 Aug 2010 15:03:59 +0200 Subject: qdoc: Ensured that text is encoded correctly. (cherry picked from commit 9986c3f0c0681c7ea8bc8e5cfea5662880db6654) --- tools/qdoc3/htmlgenerator.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index e52ec53..afec919 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1720,7 +1720,7 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, out() << "\n"; } if (!cn->name().isEmpty()) - out() << "
  • " << protect(cn->name()) << "
  • \n"; + out() << "
  • " << protectEnc(cn->name()) << "
  • \n"; } else if (node->type() == Node::Fake) { const FakeNode* fn = static_cast(node); @@ -1728,13 +1728,13 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, out() << "
  • Modules
  • "; QString name = node->name(); if (!name.isEmpty()) - out() << "
  • " << protect(name) << "
  • \n"; + out() << "
  • " << protectEnc(name) << "
  • \n"; } else if (node->subType() == Node::Group) { if (fn->name() == QString("modules")) out() << "
  • Modules
  • "; else { - out() << "
  • " << protect(title) << "
  • "; + out() << "
  • " << protectEnc(title) << "
  • "; } } else if (node->subType() == Node::Page) { @@ -1744,18 +1744,18 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, } else if (fn->name().startsWith("examples-")) { out() << "
  • Examples
  • "; - out() << "
  • " << protect(title) << "
  • "; + out() << "
  • " << protectEnc(title) << "
  • "; } else if (fn->name() == QString("namespaces.html")) { out() << "
  • Namespaces
  • "; } else { - out() << "
  • " << protect(title) << "
  • "; + out() << "
  • " << protectEnc(title) << "
  • "; } } else if (node->subType() == Node::QmlClass) { out() << "
  • QML Elements
  • "; - out() << "
  • " << protect(title) << "
  • "; + out() << "
  • " << protectEnc(title) << "
  • "; } else if (node->subType() == Node::Example) { out() << "
  • Examples
  • "; @@ -1763,17 +1763,17 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, if (sl.contains("declarative")) out() << "
  • QML Examples & Demos
  • "; else { - QString name = protect("examples-" + sl.at(0) + ".html"); // this generates an empty link + QString name = protectEnc("examples-" + sl.at(0) + ".html"); // this generates an empty link QString t = CodeParser::titleFromName(name); out() << "
  • " << t << "
  • "; } - out() << "
  • " << protect(title) << "
  • "; + out() << "
  • " << protectEnc(title) << "
  • "; } } else if (node->type() == Node::Namespace) { out() << "
  • Namespaces
  • "; - out() << "
  • " << protect(title) << "
  • "; + out() << "
  • " << protectEnc(title) << "
  • "; } } -- cgit v0.12