mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
initialize css correctly taking into account the override_css
This commit is contained in:
parent
e35e673f44
commit
279510a5e7
@ -231,7 +231,9 @@ class HTMLConverter(object):
|
||||
|
||||
def start_on_file(self, path, is_root=True, link_level=0):
|
||||
self.css = HTMLConverter.CSS.copy()
|
||||
self.pseudo_css = {}
|
||||
self.pseudo_css = self.override_pcss.copy()
|
||||
self.css.update(self.override_css)
|
||||
|
||||
path = os.path.abspath(path)
|
||||
os.chdir(os.path.dirname(path))
|
||||
self.file_name = os.path.basename(path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user