Fix opts variable in pml output.

This commit is contained in:
John Schember 2009-06-05 20:46:59 -04:00
parent ff42c7b8ba
commit cef6b55971

View File

@ -40,7 +40,7 @@ class PMLOutput(OutputFormatPlugin):
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)