Skip to content

Commit

Permalink
add strips
Browse files Browse the repository at this point in the history
  • Loading branch information
grayaii committed Mar 17, 2021
1 parent aa4bd52 commit 9ab0402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retemplate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ def preprocess(self, tpl):
if match:
groups = match.groups()
if groups[1].startswith('rtpl://'):
self.vars[groups[0]] = self.resolve_value(groups[1])
self.vars[groups[0]] = self.resolve_value(groups[1]).strip()
else:
self.vars[groups[0]] = groups[1]
self.vars[groups[0]] = groups[1].strip()
# Now update all future lines so they get parsed right
for j in range(i, len(lines)):
for var in self.vars:
Expand Down

0 comments on commit 9ab0402

Please sign in to comment.