Correct plain-summary-line
For plaintext we don't actually need to render the Markdown before shortening the string. (and this may have led to wrong output)
This commit is contained in:
parent
2352c1c539
commit
0b3bc9b5e2
@ -1657,8 +1657,8 @@ fn shorter<'a>(s: Option<&'a str>) -> String {
|
||||
|
||||
#[inline]
|
||||
fn plain_summary_line(s: Option<&str>) -> String {
|
||||
let md = markdown::plain_summary_line(s.unwrap_or(""));
|
||||
shorter(Some(&md)).replace("\n", " ")
|
||||
let line = shorter(s).replace("\n", " ");
|
||||
markdown::plain_summary_line(&line[..])
|
||||
}
|
||||
|
||||
fn document(w: &mut fmt::Formatter, cx: &Context, item: &clean::Item) -> fmt::Result {
|
||||
|
Loading…
Reference in New Issue
Block a user