mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 18:06:24 +01:00
Fix bug in template 'for' where loop variables are not stripped.
This commit is contained in:
parent
ac65947be9
commit
4cd6f6f1f5
1 changed files with 1 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ def do_node_for(self, prog):
|
|||
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…
Reference in a new issue