File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
sphinx/themes/basic/static Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Incompatible changes
18
18
* #7784: i18n: The msgid for alt text of image is changed
19
19
* #7996: manpage: Make a section directory on build manpage by default (see
20
20
:confval:`man_make_section_directory`)
21
+ * #8380: html search: search results are wrapped with ``<p>`` instead of
22
+ ``<div>``
21
23
22
24
Deprecated
23
25
----------
@@ -43,6 +45,7 @@ Features added
43
45
Bugs fixed
44
46
----------
45
47
48
+ * #8380: html search: Paragraphs in search results are not identified as ``<p>``
46
49
* #8342: Emit a warning if a unknown domain is given for directive or role (ex.
47
50
``:unknown:doc:``)
48
51
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ ul.search li a {
130
130
font-weight: bold;
131
131
}
132
132
133
- ul.search li div .context {
133
+ ul.search li p .context {
134
134
color: #888;
135
135
margin: 2px 0 0 30px;
136
136
text-align: left;
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ var Search = {
501
501
var excerpt = ( ( start > 0 ) ? '...' : '' ) +
502
502
$ . trim ( text . substr ( start , 240 ) ) +
503
503
( ( start + 240 - text . length ) ? '...' : '' ) ;
504
- var rv = $ ( '<div class="context"></div>' ) . text ( excerpt ) ;
504
+ var rv = $ ( '<p class="context"></div>' ) . text ( excerpt ) ;
505
505
$ . each ( hlwords , function ( ) {
506
506
rv = rv . highlightText ( this , 'highlighted' ) ;
507
507
} ) ;
You can’t perform that action at this time.
0 commit comments