From 53c568082d45fa9c1a660c1b7b8ca2ea5e191844 Mon Sep 17 00:00:00 2001 From: neri Date: Sun, 3 Jul 2022 00:48:34 +0200 Subject: [PATCH] trim trailing whitespace of snippets --- src/template.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/template.rs b/src/template.rs index 85cd606..c14d9f4 100644 --- a/src/template.rs +++ b/src/template.rs @@ -8,8 +8,8 @@ use crate::config::Config; const INDEX_HTML: &str = include_str!("../template/index.html"); const AUTH_HIDE_JS: &str = include_str!("../template/auth-hide.js"); -const AUTH_SNIPPET_HTML: &str = include_str!("../snippet/auth.html.snippet"); -const MAX_SIZE_SNIPPET_HTML: &str = include_str!("../snippet/max_size.html.snippet"); +const AUTH_SNIPPET_HTML: &str = include_str!("../snippet/auth.html.snippet").trim_end(); +const MAX_SIZE_SNIPPET_HTML: &str = include_str!("../snippet/max_size.html.snippet").trim_end; pub async fn write_prefillable_templates(config: &Config) { let index_html = build_index_html(config);