mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
TXT extension for temp files
This commit is contained in:
parent
539a88ed14
commit
bf7ece8208
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ def load_config(config_path):
|
||||||
|
|
||||||
|
|
||||||
def get_text_from_editor(config, template=""):
|
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:
|
with codecs.open(tmpfile, 'w', "utf-8") as f:
|
||||||
if template:
|
if template:
|
||||||
f.write(template)
|
f.write(template)
|
||||||
|
|
Loading…
Add table
Reference in a new issue