From 4432a279fb8361a6bc94fbd38bb08f507b28944a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Oct 2007 18:24:20 +0000 Subject: [PATCH] Parse all anchors in tables, not just elements. --- src/libprs500/ebooks/lrf/html/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libprs500/ebooks/lrf/html/table.py b/src/libprs500/ebooks/lrf/html/table.py index 292ccae677..3a8ffa3107 100644 --- a/src/libprs500/ebooks/lrf/html/table.py +++ b/src/libprs500/ebooks/lrf/html/table.py @@ -225,7 +225,7 @@ class Row(object): for cell in cells: ccss = conv.tag_css(cell, css)[0] 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 if name is not None: self.targets.append(name.replace('#', ''))