mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
Fix bug in template 'for' where loop variables are not stripped.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user