Skip to content

Commit 8be674a

Browse files
committed
deal with % sign in titles in search results
1 parent 60ef67e commit 8be674a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/searchindex_js.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838
QCString searchName(const Definition *d)
3939
{
40-
return d->definitionType()==Definition::TypeGroup ? QCString(toGroupDef(d)->groupTitle()) :
41-
d->definitionType()==Definition::TypePage ? toPageDef(d)->title() :
40+
return d->definitionType()==Definition::TypeGroup ? filterTitle(QCString(toGroupDef(d)->groupTitle())) :
41+
d->definitionType()==Definition::TypePage ? filterTitle(toPageDef(d)->title()) :
4242
d->localName();
4343
}
4444

@@ -419,7 +419,7 @@ void createJavaScriptSearchIndex()
419419
{
420420
if (gd->isLinkable())
421421
{
422-
std::string title = gd->groupTitle().str();
422+
std::string title = filterTitle(gd->groupTitle()).str();
423423
for(const auto& word: splitSearchTokens(title))
424424
{
425425
g_searchIndexInfo[SEARCH_INDEX_ALL].add(word,gd.get());
@@ -433,7 +433,7 @@ void createJavaScriptSearchIndex()
433433
{
434434
if (pd->isLinkable())
435435
{
436-
std::string title = pd->title().str();
436+
std::string title = filterTitle(pd->title()).str();
437437
for(const auto& word: splitSearchTokens(title))
438438
{
439439
g_searchIndexInfo[SEARCH_INDEX_ALL].add(word,pd.get());
@@ -443,7 +443,7 @@ void createJavaScriptSearchIndex()
443443
}
444444
if (Doxygen::mainPage)
445445
{
446-
std::string title = Doxygen::mainPage->title().str();
446+
std::string title = filterTitle(Doxygen::mainPage->title()).str();
447447
for(const auto& word: splitSearchTokens(title))
448448
{
449449
g_searchIndexInfo[SEARCH_INDEX_ALL].add(word,Doxygen::mainPage.get());

0 commit comments

Comments
 (0)