mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PDF Output: Fix hyperlinks not working when converting an EPUB whose individual files have names with URL unsafe characters. Fixes #1169795 (Private bug)
This commit is contained in:
parent
4f3bf4296a
commit
6cd338ad41
@ -51,7 +51,7 @@ class Links(object):
|
|||||||
for link in self.links:
|
for link in self.links:
|
||||||
path, href, frag = link[0]
|
path, href, frag = link[0]
|
||||||
page, rect = link[1:]
|
page, rect = link[1:]
|
||||||
combined_path = os.path.abspath(os.path.join(os.path.dirname(path), *href.split('/')))
|
combined_path = os.path.abspath(os.path.join(os.path.dirname(path), *unquote(href).split('/')))
|
||||||
is_local = not href or combined_path in self.anchors
|
is_local = not href or combined_path in self.anchors
|
||||||
annot = Dictionary({
|
annot = Dictionary({
|
||||||
'Type':Name('Annot'), 'Subtype':Name('Link'),
|
'Type':Name('Annot'), 'Subtype':Name('Link'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user