Fix bug in template 'for' where loop variables are not stripped.

This commit is contained in:
Charles Haley 2021-02-19 13:26:53 +00:00
parent ac65947be9
commit 4cd6f6f1f5

View File

@ -650,7 +650,7 @@ class _Interpreter(object):
res = getattr(self.parent_book, f, f)
if res is not None:
if not isinstance(res, list):
res = res.split(',')
res = [r.strip() for r in res.split(',') if r.strip()]
ret = ''
for x in res:
self.locals[v] = x