Skip to content

Commit 38eab97

Browse files
committed
rustdoc: Fix an unindentation bug when collapsing
Turns out eagerly trimming comes back to bite you :(
1 parent bcb8657 commit 38eab97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/passes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub fn collapse_docs(crate: clean::Crate) -> plugins::PluginResult {
162162
_ => true
163163
}).map(|x| x.clone()).collect();
164164
if "" != docstr {
165-
a.push(clean::NameValue(~"doc", docstr.trim().to_owned()));
165+
a.push(clean::NameValue(~"doc", docstr));
166166
}
167167
i.attrs = a;
168168
self.fold_item_recur(i)

0 commit comments

Comments
 (0)