Updated docs from master

This commit is contained in:
Manuel Ebert 2013-11-29 10:25:40 -08:00
parent 936c54e70c
commit 40f406f6e2
4 changed files with 11 additions and 4 deletions

View file

@ -134,7 +134,7 @@ class Journal(object):
line = line.strip()
new_date = datetime.strptime(line[:date_length], self.config['timeformat'])
# parsing successfull => save old entry and create new one
# parsing successful => save old entry and create new one
if new_date and current_entry:
entries.append(current_entry)

BIN
jrnl/cli.pyc Normal file

Binary file not shown.

View file

@ -31,7 +31,7 @@ default_config = {
'timeformat': "%Y-%m-%d %H:%M",
'tagsymbols': '@',
'highlight': True,
'linewrap': 80,
'linewrap': 79,
}

View file

@ -156,6 +156,13 @@ def cli(manual_args=None):
else:
journal = Journal.Journal(journal_name, **config)
if "win32" in sys.platform:
# for Windows systems
_exit_multiline_code = "on a blank line, press Ctrl+Z and then Enter"
else:
# for *nix systems (and others?)
_exit_multiline_code = "press Ctrl+D"
if mode_compose and not args.text:
if not sys.stdin.isatty():
# Piping data into jrnl
@ -163,7 +170,7 @@ def cli(manual_args=None):
elif config['editor']:
raw = get_text_from_editor(config)
else:
raw = util.py23_read("[Compose Entry, press Ctrl+D to finish writing]\n")
raw = util.py23_read("[Compose Entry; " + _exit_multiline_code + " to finish writing]\n")
if raw:
args.text = [raw]
else: