diff --git a/internal/templates/resources/rust/src/helper.rs.tmpl b/internal/templates/resources/rust/src/helper.rs.tmpl index a7eabc4..ed076e0 100644 --- a/internal/templates/resources/rust/src/helper.rs.tmpl +++ b/internal/templates/resources/rust/src/helper.rs.tmpl @@ -61,12 +61,12 @@ pub fn text_with_newlines(node: Node) -> String { Node::new_fragment( node.html() .read() - .replace("
", "{{ .LINEBREAK }}") + .replace("
", "{{ "{{ .LINEBREAK }}" }}") .as_bytes(), ) .text() .read() - .replace("{{ .LINEBREAK }}", "\n") + .replace("{{ "{{ .LINEBREAK }}" }}", "\n") } else { String::new() }