mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Windows: wraps lines at 79 chars by default
trying to wrap lines at 80 char in Windows' CMD results in blank lines following lines that are exactly 80 char long
This commit is contained in:
parent
e176e1145b
commit
79a8b59e6f
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@ default_config = {
|
|||
'linewrap': 80,
|
||||
}
|
||||
|
||||
if "win32" in sys.platform:
|
||||
default_config['linewrap'] = 79
|
||||
|
||||
|
||||
def upgrade_config(config, config_path=os.path.expanduser("~/.jrnl_conf")):
|
||||
"""Checks if there are keys missing in a given config dict, and if so, updates the config file accordingly.
|
||||
|
|
Loading…
Add table
Reference in a new issue