mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix bug in template 'for' where loop variables are not stripped.
This commit is contained in:
parent
ac65947be9
commit
4cd6f6f1f5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user