mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
rustdoc: remove extraneous whitespace inserted in playpen links
This commit is contained in:
parent
a70a60a02b
commit
61e3918189
@ -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}");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user