aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-02-22 20:37:38 -0600
committerMark Powers <mark@marks.kitchen>2021-02-22 20:37:38 -0600
commitc691d2efcdcf60bcfe56bfb13d40dd86561444d4 (patch)
treee23377a873972ee34e33255f3aa6b879b5a96865
parentc9b05519f41344e9f7549ed992b0a98ec720f933 (diff)
Add .md extension to temp file
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index a914bca..20d1c2f 100755
--- a/main.py
+++ b/main.py
@@ -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)