diff options
author | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2021-10-12 19:24:40 +0200 |
---|---|---|
committer | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2021-11-29 23:53:27 +0100 |
commit | ef3e840ac4874e52aa52da6ed5f0afddafa61d1a (patch) | |
tree | 2074c13e9c0b978fe1538ec81e88e1957a9a1b96 /askama_shared/src/generator.rs | |
parent | 4940b5dd5e792811491f1c3c3b1c70c8177c7e02 (diff) | |
download | askama-ef3e840ac4874e52aa52da6ed5f0afddafa61d1a.tar.gz askama-ef3e840ac4874e52aa52da6ed5f0afddafa61d1a.tar.bz2 askama-ef3e840ac4874e52aa52da6ed5f0afddafa61d1a.zip |
Allow whitespace trimming in {{raw}} blocks
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/generator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index e121be5..cb395d4 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -457,9 +457,9 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { self.flush_ws(m.ws1); self.prepare_ws(m.ws2); } - Node::Raw(ws1, contents, ws2) => { + Node::Raw(ws1, lws, val, rws, ws2) => { self.handle_ws(ws1); - self.buf_writable.push(Writable::Lit(contents)); + self.visit_lit(lws, val, rws); self.handle_ws(ws2); } Node::Import(ws, _, _) => { |