From a777e0ca8f42ecc6fbf72c63e8658b01ccc9daf7 Mon Sep 17 00:00:00 2001 From: ef3d0c3e Date: Mon, 29 Jul 2024 18:06:28 +0200 Subject: [PATCH] Update layout --- src/compiler/compiler.rs | 7 ++++--- src/compiler/navigation.rs | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) 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!(""), }