mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression in calibre 5 that broke using a file for the --extra-css option of ebook-convert
More python 3 goodness
This commit is contained in:
parent
8e38105c5a
commit
c544efa75a
@ -1199,7 +1199,7 @@ OptionRecommendation(name='search_replace',
|
||||
|
||||
if self.opts.extra_css and os.path.exists(self.opts.extra_css):
|
||||
with open(self.opts.extra_css, 'rb') as f:
|
||||
self.opts.extra_css = f.read()
|
||||
self.opts.extra_css = f.read().decode('utf-8')
|
||||
|
||||
oibl = self.opts.insert_blank_line
|
||||
orps = self.opts.remove_paragraph_spacing
|
||||
|
Loading…
x
Reference in New Issue
Block a user