From bf7ece82080a65463d501f99c13ff00c77a61ebd Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Sun, 5 Apr 2015 23:55:04 +0200 Subject: [PATCH] TXT extension for temp files --- jrnl/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/util.py b/jrnl/util.py index 8aeb1781..c6ea4659 100644 --- a/jrnl/util.py +++ b/jrnl/util.py @@ -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)