Skip to content

Commit 5b994fc

Browse files
authored
Merge pull request #9192 from tk0miya/8380_broken_search_tags
Fix #8380: html search: tags for search result are broken
2 parents 5956dc4 + 6e4bcde commit 5b994fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Bugs fixed
2020
from a property of the class
2121
* #9188: autosummary: warning is emitted if list value is set to
2222
autosummary_generate
23+
* #8380: html search: tags for search result are broken
2324

2425
Testing
2526
--------

sphinx/themes/basic/static/searchtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ var Search = {
509509
var excerpt = ((start > 0) ? '...' : '') +
510510
$.trim(text.substr(start, 240)) +
511511
((start + 240 - text.length) ? '...' : '');
512-
var rv = $('<p class="context"></div>').text(excerpt);
512+
var rv = $('<p class="context"></p>').text(excerpt);
513513
$.each(hlwords, function() {
514514
rv = rv.highlightText(this, 'highlighted');
515515
});

0 commit comments

Comments
 (0)