File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> String {
554
554
ty : shortty ( item) ,
555
555
name : item. name . clone ( ) . unwrap ( ) ,
556
556
path : fqp[ ..fqp. len ( ) - 1 ] . join ( "::" ) ,
557
- desc : shorter ( item. doc_value ( ) ) ,
557
+ desc : Escape ( & shorter ( item. doc_value ( ) ) ) . to_string ( ) ,
558
558
parent : Some ( did) ,
559
559
search_type : get_index_search_type ( & item, parent_basename) ,
560
560
} ) ;
@@ -1065,7 +1065,7 @@ impl DocFolder for Cache {
1065
1065
ty : shortty ( & item) ,
1066
1066
name : s. to_string ( ) ,
1067
1067
path : path. join ( "::" ) . to_string ( ) ,
1068
- desc : shorter ( item. doc_value ( ) ) ,
1068
+ desc : Escape ( & shorter ( item. doc_value ( ) ) ) . to_string ( ) ,
1069
1069
parent : parent,
1070
1070
search_type : get_index_search_type ( & item, parent_basename) ,
1071
1071
} ) ;
You can’t perform that action at this time.
0 commit comments