mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
initialize css correctly taking into account the override_css
This commit is contained in:
parent
e35e673f44
commit
279510a5e7
1 changed files with 3 additions and 1 deletions
|
|
@ -231,7 +231,9 @@ def is_baen(self, soup):
|
|||
|
||||
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…
Reference in a new issue