summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-04-18 13:59:11 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-04-18 13:59:11 (GMT)
commit85b3296309775195f499c1ae43ad2575379a1e55 (patch)
tree5a45c08fe6f9334d87e18a8b8271d2c8cbb71e93 /src/index.cpp
parent707831ea739af5ae137c9cc1d04e3ffbbde11a6a (diff)
downloadDoxygen-85b3296309775195f499c1ae43ad2575379a1e55.zip
Doxygen-85b3296309775195f499c1ae43ad2575379a1e55.tar.gz
Doxygen-85b3296309775195f499c1ae43ad2575379a1e55.tar.bz2
Release-1.6.3-20100418
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 7e494f8..390fc55 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -2605,6 +2605,7 @@ void writeJavascriptSearchIndex()
if (outFile.open(IO_WriteOnly))
{
QTextStream t(&outFile);
+ t.setEncoding(QTextStream::UnicodeUTF8);
t << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\""
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" << endl;
t << "<html><head><title></title>" << endl;
@@ -2641,12 +2642,17 @@ void writeJavascriptSearchIndex()
<< "class=\"SRSymbol\" ";
if (!d->getReference().isEmpty())
{
- QCString *dest;
- t << "doxygen=\"" << d->getReference() << ":../";
- if ((dest=Doxygen::tagDestinationDict[d->getReference()])) t << *dest << "/";
- t << "\" ";
- t << "href=\"../";
- if ((dest=Doxygen::tagDestinationDict[d->getReference()])) t << *dest << "/";
+ QCString *dest = Doxygen::tagDestinationDict[d->getReference()];
+ if (dest && *dest=='.') // relative path (see bug 593679)
+ {
+ t << "doxygen=\"" << d->getReference() << ":../"
+ << *dest << "/\" href=\"../" << *dest << "/";
+ }
+ else if (dest) // absolute path
+ {
+ t << "doxygen=\"" << d->getReference() << ":"
+ << *dest << "/\" href=\"" << *dest << "/";
+ }
}
else
{
@@ -2842,6 +2848,7 @@ void writeJavascriptSearchIndex()
if (f.open(IO_WriteOnly))
{
QTextStream t(&f);
+ t.setEncoding(QTextStream::UnicodeUTF8);
t << "// Search script generated by doxygen" << endl;
t << "// Copyright (C) 2009 by Dimitri van Heesch." << endl << endl;
t << "// The code in this file is loosly based on main.js, part of Natural Docs," << endl;
@@ -2892,6 +2899,7 @@ void writeJavascriptSearchIndex()
if (f.open(IO_WriteOnly))
{
QTextStream t(&f);
+ t.setEncoding(QTextStream::UnicodeUTF8);
t << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" << endl;
t << "<html><head><title></title>" << endl;