Fix escaping issue in TOML template.

Closes #486.
This commit is contained in:
Orne Brocaar 2024-09-13 12:59:09 +01:00
parent 61d794b680
commit 2919fb79e5

View File

@ -1,4 +1,4 @@
use handlebars::{no_escape, Handlebars};
use handlebars::Handlebars;
use super::super::config;
@ -992,7 +992,7 @@ r#"
"#].join("\n");
let mut reg = Handlebars::new();
reg.register_escape_fn(no_escape);
reg.register_escape_fn(|s| s.to_string().replace('"', r#"\""#));
let conf = config::get();
println!(
"{}",