Skip to content

Commit

Permalink
Merge pull request #9192 from tk0miya/8380_broken_search_tags
Browse files Browse the repository at this point in the history
Fix #8380: html search: tags for search result are broken
  • Loading branch information
tk0miya committed May 10, 2021
2 parents 5956dc4 + 6e4bcde commit 5b994fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -20,6 +20,7 @@ Bugs fixed
from a property of the class
* #9188: autosummary: warning is emitted if list value is set to
autosummary_generate
* #8380: html search: tags for search result are broken

Testing
--------
Expand Down
2 changes: 1 addition & 1 deletion sphinx/themes/basic/static/searchtools.js
Expand Up @@ -509,7 +509,7 @@ var Search = {
var excerpt = ((start > 0) ? '...' : '') +
$.trim(text.substr(start, 240)) +
((start + 240 - text.length) ? '...' : '');
var rv = $('<p class="context"></div>').text(excerpt);
var rv = $('<p class="context"></p>').text(excerpt);
$.each(hlwords, function() {
rv = rv.highlightText(this, 'highlighted');
});
Expand Down

0 comments on commit 5b994fc

Please sign in to comment.