From 61e3918189e4bbae212ce0c781a27c311bf98566 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 14 Jan 2016 23:40:23 +0200 Subject: [PATCH] rustdoc: remove extraneous whitespace inserted in playpen links --- src/librustdoc/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index d7d30f065bf..de117b44b6f 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -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}"); }