Skip to content

Commit

Permalink
Fix sphinx-doc#8380: html search: tags for search result are broken
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed May 9, 2021
1 parent f73e061 commit 7516147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -16,6 +16,8 @@ Features added
Bugs fixed
----------

* #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 7516147

Please sign in to comment.