summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-20 19:15:07 (GMT)
committerGitHub <noreply@github.com>2018-12-20 19:15:07 (GMT)
commit9f59526ec0bcf7a05e8a85f40bc8bbf3445c5bde (patch)
tree22ffdf8ad4ebfca5b0d7179f3c6f19227f69e10c /src
parent17ea828b5c8e232843e6a6af15efff636ac6678a (diff)
parent6f836989966863932e10678bbcfc4dc5ccbf0ea9 (diff)
downloadDoxygen-9f59526ec0bcf7a05e8a85f40bc8bbf3445c5bde.zip
Doxygen-9f59526ec0bcf7a05e8a85f40bc8bbf3445c5bde.tar.gz
Doxygen-9f59526ec0bcf7a05e8a85f40bc8bbf3445c5bde.tar.bz2
Merge pull request #6687 from albert-github/feature/bug_index_character
Index list cannot contain special characters in ids for XHTML
Diffstat (limited to 'src')
-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 << "]";