summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-17 12:41:58 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-17 12:41:58 (GMT)
commit6f836989966863932e10678bbcfc4dc5ccbf0ea9 (patch)
tree924192285ab6a716571eac54fa6003837e3ed5c9 /src/index.cpp
parent43e67dce8c164df469e725deb94db582d9cfc69b (diff)
downloadDoxygen-6f836989966863932e10678bbcfc4dc5ccbf0ea9.zip
Doxygen-6f836989966863932e10678bbcfc4dc5ccbf0ea9.tar.gz
Doxygen-6f836989966863932e10678bbcfc4dc5ccbf0ea9.tar.bz2
Index list cannot contain special characters in ids for XHTML
XHTML doesn't ids with a ~ in it, converted to an id character. This happens with e.g. the list of destructors.
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 5439987..7bb9574 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -2832,7 +2832,7 @@ static void writeMemberList(OutputList &ol,bool useSections,int page,
if (!firstSection) ol.endItemList();
QCString cs = letterToLabel(ml->letter());
QCString cl = QString(QChar(ml->letter())).utf8();
- QCString anchor=(QCString)"index_"+cs;
+ QCString anchor=(QCString)"index_"+convertToId(cs);
QCString title=(QCString)"- "+cl+" -";
ol.startSection(anchor,title,SectionInfo::Subsection);
ol.docify(title);
@@ -3123,7 +3123,7 @@ static void writeQuickMemberIndex(OutputList &ol,
anchor=fullName+extension+"#index_";
else
anchor=fullName+"_"+letterToLabel(i)+extension+"#index_";
- startQuickIndexItem(ol,anchor+is,i==page,TRUE,first);
+ startQuickIndexItem(ol,anchor+convertToId(is),i==page,TRUE,first);
ol.writeString(ci);
endQuickIndexItem(ol);
first=FALSE;
@@ -5201,7 +5201,7 @@ void renderMemberIndicesAsJs(FTextStream &t,
else // other pages of multi page index
anchor=fullName+"_"+is+extension+"#index_";
t << "{text:\"" << convertToJSString(ci) << "\",url:\""
- << convertToJSString(anchor+is, false) << "\"}";
+ << convertToJSString(anchor+convertToId(is), false) << "\"}";
firstLetter=FALSE;
}
t << "]";