PDF Output: Fix link generation broken on windows when converting epubs if the filenames contained uppercase letters. Fixes #1169795 (Private bug)

This commit is contained in:
Kovid Goyal 2013-04-29 07:18:31 +05:30
parent 7701468514
commit 2b3a91335a

View File

@ -51,7 +51,7 @@ class Links(object):
for link in self.links:
path, href, frag = link[0]
page, rect = link[1:]
combined_path = os.path.abspath(os.path.join(os.path.dirname(path), *unquote(href).split('/')))
combined_path = os.path.normcase(os.path.abspath(os.path.join(os.path.dirname(path), *unquote(href).split('/'))))
is_local = not href or combined_path in self.anchors
annot = Dictionary({
'Type':Name('Annot'), 'Subtype':Name('Link'),