rustdoc: remove extraneous whitespace inserted in playpen links

This commit is contained in:
Tshepang Lekhonkhobe 2016-01-14 23:40:23 +02:00
parent a70a60a02b
commit 61e3918189

View File

@ -319,6 +319,7 @@ pub fn maketest(s: &str, cratename: Option<&str>, dont_insert_main: bool,
} else {
prog.push_str("fn main() {\n ");
prog.push_str(&everything_else.replace("\n", "\n "));
prog = prog.trim().into();
prog.push_str("\n}");
}