aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
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)