mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Minor bugfix
This commit is contained in:
parent
ed09d2309c
commit
d7a9518bb2
1 changed files with 3 additions and 3 deletions
|
@ -188,7 +188,7 @@ def run(manual_args=None):
|
||||||
if mode_compose and partial_raw[1].strip() == '':
|
if mode_compose and partial_raw[1].strip() == '':
|
||||||
if not sys.stdin.isatty():
|
if not sys.stdin.isatty():
|
||||||
# Piping data into jrnl
|
# Piping data into jrnl
|
||||||
raw = partial_raw + ': ' + util.py23_read()
|
raw = partial_raw[0] + ': ' + util.py23_read()
|
||||||
elif config['editor']:
|
elif config['editor']:
|
||||||
template = ""
|
template = ""
|
||||||
if config['template']:
|
if config['template']:
|
||||||
|
@ -197,10 +197,10 @@ def run(manual_args=None):
|
||||||
except:
|
except:
|
||||||
util.prompt("[Could not read template at '']".format(config['template']))
|
util.prompt("[Could not read template at '']".format(config['template']))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
raw = partial_raw + ': ' + util.get_text_from_editor(config, template)
|
raw = partial_raw[0] + ': ' + util.get_text_from_editor(config, template)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
raw = partial_raw + ': ' + util.py23_read("[Compose Entry; " + _exit_multiline_code + " to finish writing]\n")
|
raw = partial_raw[0] + ': ' + util.py23_read("[Compose Entry; " + _exit_multiline_code + " to finish writing]\n")
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
util.prompt("[Entry NOT saved to journal.]")
|
util.prompt("[Entry NOT saved to journal.]")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue