From 0fccc6a2c30bb662a3125aef395f3c52cee90952 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Wed, 28 Sep 2022 09:15:57 +0900 Subject: [PATCH] added logo img tag to inside section tag --- src/options/htmlreport.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/options/htmlreport.rs b/src/options/htmlreport.rs index 30143c2f..03a2972f 100644 --- a/src/options/htmlreport.rs +++ b/src/options/htmlreport.rs @@ -93,7 +93,6 @@ pub fn create_html_file(input_html: String, path_str: String) { } let mut html_writer = BufWriter::new(File::create(path).unwrap()); - let result_contents = format!("
{}
", input_html); let html_data = format!( "{}", @@ -106,8 +105,10 @@ pub fn create_html_file(input_html: String, path_str: String) { link(rel="icon", type="image/png", href="./favicon.png"); } body { - img(id="logo", src = "./logo.png"); - : Raw(result_contents.as_str()); + section { + img(id="logo", src = "./logo.png"); + : Raw(input_html.as_str()); + } } }