mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Set default linewrap to 79 globally
This commit is contained in:
parent
410a7a7094
commit
34acf9002f
1 changed files with 1 additions and 4 deletions
|
@ -31,12 +31,9 @@ default_config = {
|
||||||
'timeformat': "%Y-%m-%d %H:%M",
|
'timeformat': "%Y-%m-%d %H:%M",
|
||||||
'tagsymbols': '@',
|
'tagsymbols': '@',
|
||||||
'highlight': True,
|
'highlight': True,
|
||||||
'linewrap': 80,
|
'linewrap': 79,
|
||||||
}
|
}
|
||||||
|
|
||||||
if "win32" in sys.platform:
|
|
||||||
default_config['linewrap'] = 79
|
|
||||||
|
|
||||||
|
|
||||||
def upgrade_config(config, config_path=os.path.expanduser("~/.jrnl_conf")):
|
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.
|
"""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