mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix opts variable in txt output.
This commit is contained in:
parent
cec9bf66ba
commit
ff42c7b8ba
@ -46,7 +46,7 @@ class TXTOutput(OutputFormatPlugin):
|
||||
|
||||
out_stream.seek(0)
|
||||
out_stream.truncate()
|
||||
out_stream.write(txt.encode(self.opts.output_encoding, 'replace'))
|
||||
out_stream.write(txt.encode(opts.output_encoding, 'replace'))
|
||||
|
||||
if close:
|
||||
out_stream.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user