Skip to content

Commit

Permalink
Simplified code of fix for Bug 765001
Browse files Browse the repository at this point in the history
  • Loading branch information
c-lipka committed May 1, 2016
1 parent e0d4327 commit e70b45f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/htmlhelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e70b45f

Please sign in to comment.