From e177f043c0527d88807fe01ca2d31329bddff660 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 Dec 2010 10:36:47 -0700 Subject: [PATCH] TXT Input: Use a nicer name for the generated html file --- src/calibre/ebooks/txt/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/txt/input.py b/src/calibre/ebooks/txt/input.py index b444bf1cf4..e82b980009 100644 --- a/src/calibre/ebooks/txt/input.py +++ b/src/calibre/ebooks/txt/input.py @@ -77,7 +77,7 @@ class TXTInput(InputFormatPlugin): base = os.getcwdu() if hasattr(stream, 'name'): base = os.path.dirname(stream.name) - htmlfile = open(os.path.join(base, 'temp_calibre_txt_input_to_html.html'), + htmlfile = open(os.path.join(base, 'index.html'), 'wb') htmlfile.write(html.encode('utf-8')) htmlfile.close()