diff --git a/src/tools/rustbook/build.rs b/src/tools/rustbook/build.rs
index 6014439fafc..09c2d2510e3 100644
--- a/src/tools/rustbook/build.rs
+++ b/src/tools/rustbook/build.rs
@@ -61,9 +61,9 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul
section,
item.title)?;
if !item.children.is_empty() {
- writeln!(out, "
")?;
+ writeln!(out, "")?;
let _ = walk_items(&item.children[..], section, current_page, out);
- writeln!(out, "
")?;
+ writeln!(out, "")?;
}
writeln!(out, "")?;
@@ -71,9 +71,9 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul
}
writeln!(out, "")?;
- writeln!(out, "
")?;
+ writeln!(out, "")?;
walk_items(&book.chapters[..], "", ¤t_page, out)?;
- writeln!(out, "
")?;
+ writeln!(out, "")?;
writeln!(out, "
")?;
Ok(())