diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-08 11:15:00 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-11-08 11:15:00 +0300 |
commit | 339cab76579ee2b9b0c6ed85cdf3f89afe589067 (patch) | |
tree | 4d8f47f80456d745a595d8aee1a05eddd3e0c899 /sphinx/themes | |
parent | a3145beddf1aaf4d1bd76c0670473f0e7d8f4b64 (diff) |
Fix #8380: html search: search results are wrapped with <p> instead of <div>
Diffstat (limited to 'sphinx/themes')
-rw-r--r-- | sphinx/themes/basic/static/basic.css_t | 2 | ||||
-rw-r--r-- | sphinx/themes/basic/static/searchtools.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index 38b9fb553..64fb93fd8 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -130,7 +130,7 @@ ul.search li a { font-weight: bold; } -ul.search li div.context { +ul.search li p.context { color: #888; margin: 2px 0 0 30px; text-align: left; diff --git a/sphinx/themes/basic/static/searchtools.js b/sphinx/themes/basic/static/searchtools.js index 261ecaa92..1a171e0c6 100644 --- a/sphinx/themes/basic/static/searchtools.js +++ b/sphinx/themes/basic/static/searchtools.js @@ -501,7 +501,7 @@ var Search = { var excerpt = ((start > 0) ? '...' : '') + $.trim(text.substr(start, 240)) + ((start + 240 - text.length) ? '...' : ''); - var rv = $('<div class="context"></div>').text(excerpt); + var rv = $('<p class="context"></div>').text(excerpt); $.each(hlwords, function() { rv = rv.highlightText(this, 'highlighted'); }); |