mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #603: Do not use the HTML-ized title for building the search index (that
resulted in "literal" being found on every page with a literal in the title).
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -17,6 +17,10 @@ Bugs fixed
|
||||
|
||||
* #1319: Do not crash if the ``html_logo`` file does not exist.
|
||||
|
||||
* #603: Do not use the HTML-ized title for building the search index (that
|
||||
resulted in "literal" being found on every page with a literal in the
|
||||
title).
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
|
@@ -306,8 +306,7 @@ class IndexBuilder(object):
|
||||
return self._stem_cache[word]
|
||||
_filter = self.lang.word_filter
|
||||
|
||||
for word in itertools.chain(visitor.found_title_words,
|
||||
self.lang.split(title)):
|
||||
for word in visitor.found_title_words:
|
||||
word = stem(word)
|
||||
if _filter(word):
|
||||
self._title_mapping.setdefault(word, set()).add(filename)
|
||||
|
Reference in New Issue
Block a user