mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix rare problem where the formatter gets a tuple instead of a list.
This commit is contained in:
parent
c2428b3d09
commit
31524e1f80
@ -840,7 +840,7 @@ class _Interpreter:
|
|||||||
f = self.expr(prog.list_field_expr)
|
f = self.expr(prog.list_field_expr)
|
||||||
res = getattr(self.parent_book, f, f)
|
res = getattr(self.parent_book, f, f)
|
||||||
if res is not None:
|
if res is not None:
|
||||||
if not isinstance(res, list):
|
if isinstance(res, str):
|
||||||
res = [r.strip() for r in res.split(separator) if r.strip()]
|
res = [r.strip() for r in res.split(separator) if r.strip()]
|
||||||
ret = ''
|
ret = ''
|
||||||
if self.break_reporter:
|
if self.break_reporter:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user