Updated docs from master

This commit is contained in:
Manuel Ebert 2014-01-02 14:18:54 +01:00
parent 7d577baf66
commit 0f582b2c0c
40 changed files with 118 additions and 65 deletions

Binary file not shown.

Binary file not shown.

View file

@ -7,7 +7,7 @@ jrnl is a simple journal application for your command line.
"""
__title__ = 'jrnl'
__version__ = '1.7.2'
__version__ = '1.7.3'
__author__ = 'Manuel Ebert'
__license__ = 'MIT License'
__copyright__ = 'Copyright 2013 Manuel Ebert'

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -129,14 +129,13 @@ def get_text_from_editor(config, template=""):
if template:
with codecs.open(tmpfile, 'w', "utf-8") as f:
f.write(template)
with open(tmpfile, 'w'):
pass
subprocess.call(config['editor'].split() + [tmpfile])
if os.path.exists(tmpfile):
with codecs.open(tmpfile, "r", "utf-8") as f:
raw = f.read()
os.remove(tmpfile)
else:
with codecs.open(tmpfile, "r", "utf-8") as f:
raw = f.read()
os.remove(tmpfile)
if not raw:
prompt('[Nothing saved to file]')
raw = ''
return raw

Binary file not shown.