From 0ccd269cc2dae8d708245ab5d2711207b1c1a076 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 30 Jan 2020 18:51:43 -0800 Subject: [PATCH] Strip resultant preview, let the caller organize whitespace. --- voussoirkit/betterhelp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):