Skip to content

Commit

Permalink
Fix a regression in calibre 5 that broke using a file for the --extra…
Browse files Browse the repository at this point in the history
…-css option of ebook-convert

More python 3 goodness
  • Loading branch information
kovidgoyal committed Dec 27, 2022
1 parent 8e38105 commit c544efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/ebooks/conversion/plumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ def run(self):

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
Expand Down

0 comments on commit c544efa

Please sign in to comment.