From 65064a7d2c20de400a1a3659193b55c34cf2c6a4 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Wed, 28 Sep 2022 09:07:18 +0900 Subject: [PATCH] to adjust css, Result area is added in section tag #712 --- src/options/htmlreport.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/options/htmlreport.rs b/src/options/htmlreport.rs index 372a7b36..30143c2f 100644 --- a/src/options/htmlreport.rs +++ b/src/options/htmlreport.rs @@ -93,6 +93,8 @@ 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!( "{}", html! { @@ -105,7 +107,7 @@ pub fn create_html_file(input_html: String, path_str: String) { } body { img(id="logo", src = "./logo.png"); - : Raw(input_html.clone().as_str()); + : Raw(result_contents.as_str()); } }