File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1264,7 +1264,7 @@ impl Context {
1264
1264
let short = short. to_string ( ) ;
1265
1265
let v = map. entry ( short) . get ( ) . unwrap_or_else (
1266
1266
|vacant_entry| vacant_entry. insert ( Vec :: with_capacity ( 1 ) ) ) ;
1267
- v. push ( ( myname, Some ( shorter_line ( item. doc_value ( ) ) ) ) ) ;
1267
+ v. push ( ( myname, Some ( plain_summary_line ( item. doc_value ( ) ) ) ) ) ;
1268
1268
}
1269
1269
1270
1270
for ( _, items) in & mut map {
@@ -1478,8 +1478,9 @@ fn shorter<'a>(s: Option<&'a str>) -> &'a str {
1478
1478
}
1479
1479
1480
1480
#[ inline]
1481
- fn shorter_line ( s : Option < & str > ) -> String {
1482
- shorter ( s) . replace ( "\n " , " " )
1481
+ fn plain_summary_line ( s : Option < & str > ) -> String {
1482
+ let line = shorter ( s) . replace ( "\n " , " " ) ;
1483
+ markdown:: plain_summary_line ( & line[ ..] )
1483
1484
}
1484
1485
1485
1486
fn document ( w : & mut fmt:: Formatter , item : & clean:: Item ) -> fmt:: Result {
You can’t perform that action at this time.
0 commit comments