Merge pull request #252 from crazymerlyn/fix-runnable-files

Remove the extra run button on runnable rust files
This commit is contained in:
Steve Klabnik 2017-04-16 11:58:07 -04:00 committed by GitHub
commit 9602acce80
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ pub fn render_playpen(s: &str, path: &Path) -> String {
continue;
};
let replacement = String::new() + "<pre class=\"playpen\"><code class=\"language-rust\">" + &file_content +
let replacement = String::new() + "<pre><code class=\"language-rust\">" + &file_content +
"</code></pre>";
replaced.push_str(&s[previous_end_index..playpen.start_index]);