rustdoc: Fix an unindentation bug when collapsing
Turns out eagerly trimming comes back to bite you :(
This commit is contained in:
parent
bcb8657842
commit
38eab97d16
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ pub fn collapse_docs(crate: clean::Crate) -> plugins::PluginResult {
|
|||
_ => true
|
||||
}).map(|x| x.clone()).collect();
|
||||
if "" != docstr {
|
||||
a.push(clean::NameValue(~"doc", docstr.trim().to_owned()));
|
||||
a.push(clean::NameValue(~"doc", docstr));
|
||||
}
|
||||
i.attrs = a;
|
||||
self.fold_item_recur(i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue