@@ -698,7 +698,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> String {
698
698
ty : item. type_ ( ) ,
699
699
name : item. name . clone ( ) . unwrap ( ) ,
700
700
path : fqp[ ..fqp. len ( ) - 1 ] . join ( "::" ) ,
701
- desc : plain_summary_line ( item. doc_value ( ) ) ,
701
+ desc : plain_summary_line_short ( item. doc_value ( ) ) ,
702
702
parent : Some ( did) ,
703
703
parent_idx : None ,
704
704
search_type : get_index_search_type ( & item) ,
@@ -736,7 +736,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> String {
736
736
}
737
737
738
738
let crate_doc = krate. module . as_ref ( ) . map ( |module| {
739
- plain_summary_line ( module. doc_value ( ) )
739
+ plain_summary_line_short ( module. doc_value ( ) )
740
740
} ) . unwrap_or ( String :: new ( ) ) ;
741
741
742
742
let mut crate_data = BTreeMap :: new ( ) ;
@@ -1487,7 +1487,7 @@ impl DocFolder for Cache {
1487
1487
ty : item. type_ ( ) ,
1488
1488
name : s. to_string ( ) ,
1489
1489
path : path. join ( "::" ) ,
1490
- desc : plain_summary_line ( item. doc_value ( ) ) ,
1490
+ desc : plain_summary_line_short ( item. doc_value ( ) ) ,
1491
1491
parent,
1492
1492
parent_idx : None ,
1493
1493
search_type : get_index_search_type ( & item) ,
@@ -1679,7 +1679,7 @@ impl<'a> Cache {
1679
1679
ty : item. type_ ( ) ,
1680
1680
name : item_name. to_string ( ) ,
1681
1681
path : path. clone ( ) ,
1682
- desc : plain_summary_line ( item. doc_value ( ) ) ,
1682
+ desc : plain_summary_line_short ( item. doc_value ( ) ) ,
1683
1683
parent : None ,
1684
1684
parent_idx : None ,
1685
1685
search_type : get_index_search_type ( & item) ,
@@ -2396,7 +2396,13 @@ fn shorter<'a>(s: Option<&'a str>) -> String {
2396
2396
#[ inline]
2397
2397
fn plain_summary_line ( s : Option < & str > ) -> String {
2398
2398
let line = shorter ( s) . replace ( "\n " , " " ) ;
2399
- markdown:: plain_summary_line ( & line[ ..] )
2399
+ markdown:: plain_summary_line_full ( & line[ ..] , false )
2400
+ }
2401
+
2402
+ #[ inline]
2403
+ fn plain_summary_line_short ( s : Option < & str > ) -> String {
2404
+ let line = shorter ( s) . replace ( "\n " , " " ) ;
2405
+ markdown:: plain_summary_line_full ( & line[ ..] , true )
2400
2406
}
2401
2407
2402
2408
fn document ( w : & mut fmt:: Formatter , cx : & Context , item : & clean:: Item ) -> fmt:: Result {
0 commit comments