mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c05bb2ee69
commit
170c7f91a6
@ -129,6 +129,10 @@ class Footnotes(object):
|
||||
dest_path = self.spine_path(qurl.toLocalFile())
|
||||
if dest_path is not None:
|
||||
if dest_path == current_path:
|
||||
# We deliberately ignore linked to anchors if the destination is
|
||||
# the same as the source, because many books have section ToCs
|
||||
# that are linked back from their destinations, for example,
|
||||
# the calibre User Manual
|
||||
linked_to_anchors = {}
|
||||
else:
|
||||
linked_to_anchors = {anchor:0 for path, anchor in dest_path.verified_links if path == current_path}
|
||||
|
Loading…
x
Reference in New Issue
Block a user