Strip resultant preview, let the caller organize whitespace.
This commit is contained in:
parent
73483838c9
commit
0ccd269cc2
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue