diff options
author | Mark Powers <mark@marks.kitchen> | 2021-02-22 20:37:38 -0600 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2021-02-22 20:37:38 -0600 |
commit | c691d2efcdcf60bcfe56bfb13d40dd86561444d4 (patch) | |
tree | e23377a873972ee34e33255f3aa6b879b5a96865 | |
parent | c9b05519f41344e9f7549ed992b0a98ec720f933 (diff) |
Add .md extension to temp file
-rwxr-xr-x | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -109,7 +109,7 @@ def open_editor(action, pathname, initial_body): editor = os.environ['VISUAL'] else: editor = os.environ['EDITOR'] - filename = "/tmp/wikijscmd-"+action+"-"+clean_filename(pathname) + filename = "/tmp/wikijscmd-"+action+"-"+clean_filename(pathname)+".md" if len(initial_body) > 0: with open(filename, "w") as f: f.write(initial_body) |