Strip resultant preview, let the caller organize whitespace.

This commit is contained in:
Ethan Dalool 2020-01-30 18:51:43 -08:00
parent 73483838c9
commit 0ccd269cc2

View file

@ -4,7 +4,7 @@ import textwrap
HELPSTRINGS = {'', 'help', '-h', '--help'} HELPSTRINGS = {'', 'help', '-h', '--help'}
def docstring_preview(text): def docstring_preview(text):
text = text.split('\n\n')[0] text = text.split('\n\n')[0].strip()
return text return text
def listget(li, index, fallback=None): def listget(li, index, fallback=None):