1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-17 01:32:37 +02:00

reformat doc_text for nicer indentation

This commit is contained in:
Kelly Brazil
2021-08-13 17:17:51 -07:00
parent 01e3764a9b
commit 0dbd2702f6

View File

@ -360,11 +360,10 @@ def help_doc(options):
# load parser module just in time so we don't need to load all modules # load parser module just in time so we don't need to load all modules
parser = parser_module(arg) parser = parser_module(arg)
compatible = ', '.join(parser.info.compatible) compatible = ', '.join(parser.info.compatible)
doc_text = f'''{parser.__doc__} doc_text = \
Compatibility: {compatible} f'{parser.__doc__}\n'\
f'Compatibility: {compatible}\n\n'\
Version {parser.info.version} by {parser.info.author} ({parser.info.author_email}) f'Version {parser.info.version} by {parser.info.author} ({parser.info.author_email})\n'
'''
return doc_text return doc_text