From cef6b55971b712607bfd7c58b26c4863c18c505c Mon Sep 17 00:00:00 2001 From: John Schember Date: Fri, 5 Jun 2009 20:46:59 -0400 Subject: [PATCH] Fix opts variable in pml output. --- src/calibre/ebooks/pml/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/pml/output.py b/src/calibre/ebooks/pml/output.py index deace8df79..851a89db56 100644 --- a/src/calibre/ebooks/pml/output.py +++ b/src/calibre/ebooks/pml/output.py @@ -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)