From 2ce28d5f2a769b6d39e7b3d89cd21a17a65b2af1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 28 Apr 2015 09:59:56 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/mobi/reader/mobi8.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/ebooks/mobi/reader/mobi8.py b/src/calibre/ebooks/mobi/reader/mobi8.py index d46a036ee9..5199e92e23 100644 --- a/src/calibre/ebooks/mobi/reader/mobi8.py +++ b/src/calibre/ebooks/mobi/reader/mobi8.py @@ -327,6 +327,9 @@ class Mobi8Reader(object): 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))