mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Handle lit files with the ampersand character in the names of constituent files.
This commit is contained in:
parent
88055d3e7b
commit
45903db4c9
@ -1347,6 +1347,8 @@ class HTMLConverter(object):
|
||||
elif tagname == 'img':
|
||||
if tag.has_key('src'):
|
||||
path = munge_paths(self.target_prefix, tag['src'])[0]
|
||||
if not os.path.exists(path):
|
||||
path = path.replace('&', '%26') # convertlit replaces & with %26
|
||||
if os.access(path, os.R_OK) and os.path.isfile(path):
|
||||
width, height = None, None
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user