diff --git a/voussoirkit/betterhelp.py b/voussoirkit/betterhelp.py index ab0ef5d..b77f627 100644 --- a/voussoirkit/betterhelp.py +++ b/voussoirkit/betterhelp.py @@ -4,7 +4,7 @@ import textwrap HELPSTRINGS = {'', 'help', '-h', '--help'} def docstring_preview(text): - text = text.split('\n\n')[0] + text = text.split('\n\n')[0].strip() return text def listget(li, index, fallback=None):