rustdoc: Fix an unindentation bug when collapsing

Turns out eagerly trimming comes back to bite you :(
This commit is contained in:
Alex Crichton 2013-09-24 16:53:21 -07:00
parent bcb8657842
commit 38eab97d16

View file

@ -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)