This commit is contained in:
Kovid Goyal 2007-11-28 02:45:15 +00:00
parent fea65749e6
commit 0e91757a9c

View File

@ -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):