From c626c4cf76222b061c3eaacc4b95abe18dba9c2a Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 13 Aug 2022 14:32:52 -0700 Subject: [PATCH] clean up version screen/copyright notice --- jrnl/commands.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/jrnl/commands.py b/jrnl/commands.py index ba4dd99a..dc773923 100644 --- a/jrnl/commands.py +++ b/jrnl/commands.py @@ -36,17 +36,22 @@ def preconfig_diagnostic(_): def preconfig_version(_): + import textwrap from jrnl import __title__ from jrnl import __version__ - version_str = f"""{__title__} version {__version__} + output = f""" + {__title__} {__version__} -Copyright © 2012-2022 jrnl contributors + Copyright © 2012-2022 jrnl contributors -This is free software, and you are welcome to redistribute it under certain -conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html""" + This is free software, and you are welcome to redistribute it under certain + conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html + """ - print(version_str) + output = textwrap.dedent(output).strip() + + print(output) def postconfig_list(config, **kwargs):