mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression that was causing the text of some links to be omitted when converting to LRF
This commit is contained in:
parent
c54d51ccbf
commit
809ba2f328
@ -1423,8 +1423,10 @@ class HTMLConverter(object, LoggingInterface):
|
||||
if tagname in ["title", "script", "meta", 'del', 'frameset']:
|
||||
pass
|
||||
elif tagname == 'a' and self.link_levels >= 0:
|
||||
if tag.has_key('href') and not self.link_exclude.match(tag['href'])\
|
||||
and urlparse(tag['href'])[0] in ('', 'file'):
|
||||
if tag.has_key('href') and not self.link_exclude.match(tag['href']):
|
||||
if urlparse(tag['href'])[0] not in ('', 'file'):
|
||||
self.process_children(tag, tag_css, tag_pseudo_css)
|
||||
else:
|
||||
path = munge_paths(self.target_prefix, tag['href'])[0]
|
||||
ext = os.path.splitext(path)[1]
|
||||
if ext: ext = ext[1:].lower()
|
||||
|
Loading…
x
Reference in New Issue
Block a user