mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #318
This commit is contained in:
parent
fea65749e6
commit
0e91757a9c
@ -63,10 +63,9 @@ def generate_html(txtfile, encoding, logger):
|
||||
safe_mode=False,
|
||||
)
|
||||
html = md.toString()
|
||||
|
||||
p = PersistentTemporaryFile('.html', dir=os.path.dirname(txtfile))
|
||||
p.close()
|
||||
codecs.open(p.name, 'wb', enc).write(html)
|
||||
codecs.open(p.name, 'wb', 'utf8').write(html)
|
||||
return p
|
||||
|
||||
def process_file(path, options, logger=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user