mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in table handling
This commit is contained in:
parent
0e91757a9c
commit
4f676ae364
@ -49,7 +49,11 @@ def tokens(tb):
|
|||||||
yield x, cattrs(attrs, {})
|
yield x, cattrs(attrs, {})
|
||||||
elif isinstance(x, (CharButton, LrsTextTag)):
|
elif isinstance(x, (CharButton, LrsTextTag)):
|
||||||
if x.contents:
|
if x.contents:
|
||||||
|
if hasattr(x.contents[0], 'text'):
|
||||||
yield x.contents[0].text, cattrs(attrs, {})
|
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):
|
elif isinstance(x, Plot):
|
||||||
yield x, None
|
yield x, None
|
||||||
elif isinstance(x, Span):
|
elif isinstance(x, Span):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user