TXT extension for temp files

This commit is contained in:
Manuel Ebert 2015-04-05 23:55:04 +02:00
parent 539a88ed14
commit bf7ece8208

View file

@ -121,7 +121,7 @@ def load_config(config_path):
def get_text_from_editor(config, template=""):
tmpfile = os.path.join(tempfile.mktemp(prefix="jrnl"))
tmpfile = os.path.join(tempfile.mktemp(prefix="jrnl", suffix=".txt"))
with codecs.open(tmpfile, 'w', "utf-8") as f:
if template:
f.write(template)