aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <Kijewski@users.noreply.github.com>2021-11-30 09:51:49 +0100
committerLibravatar GitHub <noreply@github.com>2021-11-30 09:51:49 +0100
commit1762792385052bb688b9dde143d6a7a089069a14 (patch)
tree2074c13e9c0b978fe1538ec81e88e1957a9a1b96 /askama_shared/src/generator.rs
parent4940b5dd5e792811491f1c3c3b1c70c8177c7e02 (diff)
parentef3e840ac4874e52aa52da6ed5f0afddafa61d1a (diff)
downloadaskama-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 'askama_shared/src/generator.rs')
-rw-r--r--askama_shared/src/generator.rs4
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, _, _) => {