mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
997333f0b0
commit
c0a9270f0f
@ -377,9 +377,9 @@ class Container(ContainerBase):
|
||||
link_xpath = XPath('//h:a[@href]')
|
||||
img_xpath = XPath('//h:img[@src]')
|
||||
res_link_xpath = XPath('//h:link[@href]')
|
||||
head = ensure_head(self.parsed(name))
|
||||
changed = False
|
||||
root = self.parsed(name)
|
||||
head = ensure_head(root)
|
||||
changed = False
|
||||
for style in style_xpath(root):
|
||||
# Firefox flakes out sometimes when dynamically creating <style> tags,
|
||||
# so convert them to external stylesheets to ensure they never fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user