diff options
author | Christoph Lipka <c-lipka@users.noreply.github.com> | 2016-05-01 14:36:30 (GMT) |
---|---|---|
committer | Christoph Lipka <c-lipka@users.noreply.github.com> | 2016-05-01 14:36:30 (GMT) |
commit | e70b45fa4398450b588122f9d36b1ed514fc336a (patch) | |
tree | 02338c2182950f95f8a009782ff74cedfba6e3c5 /src | |
parent | e0d432781bddf6c3b4986a003a73fe5ee986d492 (diff) | |
download | Doxygen-e70b45fa4398450b588122f9d36b1ed514fc336a.zip Doxygen-e70b45fa4398450b588122f9d36b1ed514fc336a.tar.gz Doxygen-e70b45fa4398450b588122f9d36b1ed514fc336a.tar.bz2 |
Simplified code of fix for Bug 765001
Diffstat (limited to 'src')
-rw-r--r-- | src/htmlhelp.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp index 2d4b168..fbfece0 100644 --- a/src/htmlhelp.cpp +++ b/src/htmlhelp.cpp @@ -134,17 +134,8 @@ static QCString field2URL(const IndexField *f,bool checkReversed) QCString result = f->url + Doxygen::htmlFileExtension; if (!f->anchor.isEmpty() && (!checkReversed || f->reversed)) { - result+="#"; // HTML Help needs colons in link anchors to be escaped in the .hhk file. - int prev = 0; - int next; - while ((next=f->anchor.find(':', prev))!=-1) - { - result+=f->anchor.mid(prev,next-prev); - result+="%3A"; - prev=next+1; - } - result+=f->anchor.mid(prev); + result+="#"+substitute(f->anchor,":","%3A"); } return result; } |