mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 02:43:46 +02:00
Fix bug in table handling
This commit is contained in:
parent
0e91757a9c
commit
4f676ae364
1 changed files with 5 additions and 1 deletions
|
|
@ -49,7 +49,11 @@ def process_element(x, attrs):
|
|||
yield x, cattrs(attrs, {})
|
||||
elif isinstance(x, (CharButton, LrsTextTag)):
|
||||
if x.contents:
|
||||
yield x.contents[0].text, cattrs(attrs, {})
|
||||
if hasattr(x.contents[0], 'text'):
|
||||
yield x.contents[0].text, cattrs(attrs, {})
|
||||
elif hasattr(x.contents[0], 'attrs'):
|
||||
for z in process_element(x.contents[0], x.contents[0].attrs):
|
||||
yield z
|
||||
elif isinstance(x, Plot):
|
||||
yield x, None
|
||||
elif isinstance(x, Span):
|
||||
|
|
|
|||
Loading…
Reference in a new issue