Skip to content

Commit

Permalink
strip whitespace from start/end of expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
lowfatcode committed Sep 2, 2022
1 parent e68bcfd commit 243229f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phew/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def render_template(template, **kwargs):
yield data[token_caret:]
break

expression = data[start + 2:end]
expression = data[start + 2:end].strip()

# output the bit before the tag
yield data[token_caret:start]
Expand Down

0 comments on commit 243229f

Please sign in to comment.