mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 09:04:12 +02:00
...
This commit is contained in:
parent
e198d427b5
commit
2ce28d5f2a
1 changed files with 3 additions and 0 deletions
|
|
@ -327,6 +327,9 @@ def get_id_tag(self, pos):
|
|||
m = self.id_re.match(tag) or self.name_re.match(tag)
|
||||
if m is not None:
|
||||
return m.group(1)
|
||||
# For some files, kindlegen apparently creates links to tags
|
||||
# without HTML anchors, using the AID instead. See
|
||||
# See http://www.mobileread.com/forums/showthread.php?t=259557
|
||||
m = self.aid_re.match(tag)
|
||||
if m is not None:
|
||||
self.linked_aids.add(m.group(1))
|
||||
|
|
|
|||
Loading…
Reference in a new issue