diff --git a/src/compiler/compiler.rs b/src/compiler/compiler.rs index 095e346..7f27d7a 100644 --- a/src/compiler/compiler.rs +++ b/src/compiler/compiler.rs @@ -120,7 +120,7 @@ impl Compiler { ) .as_str(); } - result += ""; + result += r#"
"#; // TODO: TOC // TODO: Author, Date, Title, Div @@ -134,7 +134,7 @@ impl Compiler { let mut result = String::new(); match self.target() { Target::HTML => { - result += ""; + result += "
"; } Target::LATEX => todo!(""), } @@ -148,7 +148,7 @@ impl Compiler { let header = self.header(document); // Body - let mut body = String::new(); + let mut body = r#"
"#.to_string(); for i in 0..borrow.len() { let elem = &borrow[i]; @@ -157,6 +157,7 @@ impl Compiler { Err(err) => println!("Unable to compile element: {err}\n{}", elem.to_string()), } } + body.push_str("
"); // Footer let footer = self.footer(document); diff --git a/src/compiler/navigation.rs b/src/compiler/navigation.rs index cc424ea..5c19316 100644 --- a/src/compiler/navigation.rs +++ b/src/compiler/navigation.rs @@ -23,7 +23,7 @@ impl NavEntry { let mut result = String::new(); match target { Target::HTML => { - result += r#""#; } _ => todo!(""), }