This commit is contained in:
Kovid Goyal 2020-02-17 02:02:53 +05:30
commit a91ed25d9b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -49,8 +49,9 @@ def main(opts, args, dbctx):
if mi is None:
raise SystemExit('Id #%d is not present in database.' % id)
if opts.as_opf:
stdout = getattr(sys.stdout, 'buffer', sys.stdout)
mi = OPFCreator(getcwd(), mi)
mi.render(sys.stdout)
mi.render(stdout)
else:
prints(unicode_type(mi))