提交 38eab97d 编写于 作者: A Alex Crichton

rustdoc: Fix an unindentation bug when collapsing

Turns out eagerly trimming comes back to bite you :(
上级 bcb86578
......@@ -162,7 +162,7 @@ fn fold_item(&mut self, i: Item) -> Option<Item> {
_ => 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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册