Skip to content

Commit

Permalink
deal with % sign in titles in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Aug 8, 2023
1 parent 60ef67e commit 8be674a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/searchindex_js.cpp
Expand Up @@ -37,8 +37,8 @@

QCString searchName(const Definition *d)
{
return d->definitionType()==Definition::TypeGroup ? QCString(toGroupDef(d)->groupTitle()) :
d->definitionType()==Definition::TypePage ? toPageDef(d)->title() :
return d->definitionType()==Definition::TypeGroup ? filterTitle(QCString(toGroupDef(d)->groupTitle())) :
d->definitionType()==Definition::TypePage ? filterTitle(toPageDef(d)->title()) :
d->localName();
}

Expand Down Expand Up @@ -419,7 +419,7 @@ void createJavaScriptSearchIndex()
{
if (gd->isLinkable())
{
std::string title = gd->groupTitle().str();
std::string title = filterTitle(gd->groupTitle()).str();
for(const auto& word: splitSearchTokens(title))
{
g_searchIndexInfo[SEARCH_INDEX_ALL].add(word,gd.get());
Expand All @@ -433,7 +433,7 @@ void createJavaScriptSearchIndex()
{
if (pd->isLinkable())
{
std::string title = pd->title().str();
std::string title = filterTitle(pd->title()).str();
for(const auto& word: splitSearchTokens(title))
{
g_searchIndexInfo[SEARCH_INDEX_ALL].add(word,pd.get());
Expand All @@ -443,7 +443,7 @@ void createJavaScriptSearchIndex()
}
if (Doxygen::mainPage)
{
std::string title = Doxygen::mainPage->title().str();
std::string title = filterTitle(Doxygen::mainPage->title()).str();
for(const auto& word: splitSearchTokens(title))
{
g_searchIndexInfo[SEARCH_INDEX_ALL].add(word,Doxygen::mainPage.get());
Expand Down

0 comments on commit 8be674a

Please sign in to comment.