mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
Merge pull request #78 from asolove/76-newlines-in-index
Add newlines back in to generated index.html files.
This commit is contained in:
commit
7762475b33
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ impl Renderer for HtmlHandlebars {
|
|||
|
||||
// This could cause a problem when someone displays code containing <base href=...>
|
||||
// on the front page, however this case should be very very rare...
|
||||
content = content.lines().filter(|line| !line.contains("<base href=")).collect();
|
||||
content = content.lines().filter(|line| !line.contains("<base href=")).collect::<Vec<&str>>().join("\n");
|
||||
|
||||
try!(index_file.write_all(content.as_bytes()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue