mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:23:43 +02:00
Fix opts variable in pml output.
This commit is contained in:
parent
ff42c7b8ba
commit
cef6b55971
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
|||
pmlmlizer = PMLMLizer(ignore_tables=opts.linearize_tables)
|
||||
content = pmlmlizer.extract_content(oeb_book, opts)
|
||||
with open(os.path.join(tdir, 'index.pml'), 'wb') as out:
|
||||
out.write(content.encode(self.opts.output_encoding, 'replace'))
|
||||
out.write(content.encode(opts.output_encoding, 'replace'))
|
||||
|
||||
self.write_images(oeb_book.manifest, tdir)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue