diff options
author | René Kijewski <Kijewski@users.noreply.github.com> | 2021-11-30 09:51:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 09:51:49 +0100 |
commit | 1762792385052bb688b9dde143d6a7a089069a14 (patch) | |
tree | 2074c13e9c0b978fe1538ec81e88e1957a9a1b96 /askama_shared/src/generator.rs | |
parent | 4940b5dd5e792811491f1c3c3b1c70c8177c7e02 (diff) | |
parent | ef3e840ac4874e52aa52da6ed5f0afddafa61d1a (diff) | |
download | askama-1762792385052bb688b9dde143d6a7a089069a14.tar.gz askama-1762792385052bb688b9dde143d6a7a089069a14.tar.bz2 askama-1762792385052bb688b9dde143d6a7a089069a14.zip |
Merge pull request #546 from Kijewski/pr-fix-raw
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, _, _) => { |