Skip to content

Commit cc1e72e

Browse files
committed
fix parse_strings_and_params bug
1 parent c8f60b3 commit cc1e72e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ def parse_strings_and_params(
298298
if last_thing == "string":
299299
# Merge adjacent string parts for efficiency, since the template engine allows that
300300
strings[-1] += part
301-
strings.append(part)
301+
else:
302+
strings.append(part)
302303
last_thing = "string"
303304
else:
304305
if last_thing is None or last_thing == "param":

0 commit comments

Comments
 (0)