From 4582b624b28c1ccaebccac7bd44915dadbe7443d Mon Sep 17 00:00:00 2001 From: Kelly Thomas Kline Date: Tue, 12 Oct 2021 11:43:30 -0700 Subject: Fix support for raw method identifiers --- askama_shared/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 3bcb5d9..f6d7cca 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -1284,7 +1284,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { self.visit_expr(buf, obj)?; } - buf.write(&format!(".{}(", method)); + buf.write(&format!(".{}(", normalize_identifier(method))); self._visit_args(buf, args)?; buf.write(")"); Ok(DisplayWrap::Unwrapped) -- cgit