From d3535ef0cad27cec767f8d2bcc1c6738fc0e3c1c Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 26 Feb 2024 11:56:30 +0100 Subject: [PATCH] Strip the expression string before passing it to process_template_expression(). --- modules/web/html/html_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/web/html/html_template.cpp b/modules/web/html/html_template.cpp index cb99a5b2e..b77720166 100644 --- a/modules/web/html/html_template.cpp +++ b/modules/web/html/html_template.cpp @@ -422,7 +422,7 @@ String HTMLTemplate::render_template(const String &p_text, const Dictionary &p_d String expression = p_text.substr_index(last_section_start, i - 2); - result += process_template_expression(expression, p_data); + result += process_template_expression(expression.strip_edges(), p_data); // i points to: v // ... {{