mirror of
https://github.com/rust-lang/mdBook
synced 2025-03-04 23:27:17 +00:00
Add newlines back in to generated index.html files.
This commit is contained in:
parent
50504282fb
commit
0ffd638904
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=")).map(|line| line.to_string() + "\n").collect();
|
||||
|
||||
try!(index_file.write_all(content.as_bytes()));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue