fix path in toc links

This commit is contained in:
funkill 2015-06-06 23:27:35 +03:00
parent bfd072db45
commit 5f5a84a59c

View File

@ -59,7 +59,7 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul
try!(writeln!(out, "<li><a {} href='{}'><b>{}</b> {}</a>",
class_string,
item.path_to_root.join(&item.path.with_extension("html")).display(),
current_page.path_to_root.join(&item.path).with_extension("html").display(),
section,
item.title));
if !item.children.is_empty() {