mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 20:43:43 +02:00
Handle lit files with the ampersand character in the names of constituent files.
This commit is contained in:
parent
88055d3e7b
commit
45903db4c9
1 changed files with 2 additions and 0 deletions
|
|
@ -1347,6 +1347,8 @@ def parse_tag(self, tag, parent_css):
|
|||
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…
Reference in a new issue