mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Parse all anchors in tables, not just <a> elements.
This commit is contained in:
parent
9b8e737920
commit
4432a279fb
@ -225,7 +225,7 @@ class Row(object):
|
|||||||
for cell in cells:
|
for cell in cells:
|
||||||
ccss = conv.tag_css(cell, css)[0]
|
ccss = conv.tag_css(cell, css)[0]
|
||||||
self.cells.append(Cell(conv, cell, ccss))
|
self.cells.append(Cell(conv, cell, ccss))
|
||||||
for a in row.findAll('a'):
|
for a in row.findAll(id=True) + row.findAll(name=True):
|
||||||
name = a['name'] if a.has_key('name') else a['id'] if a.has_key('id') else None
|
name = a['name'] if a.has_key('name') else a['id'] if a.has_key('id') else None
|
||||||
if name is not None:
|
if name is not None:
|
||||||
self.targets.append(name.replace('#', ''))
|
self.targets.append(name.replace('#', ''))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user