From d257e0826303b79043bb6abff5b190fb0cad920e Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 26 Aug 2017 21:46:36 +0100 Subject: Don't append whitespace when we don't have a previous section --- helpful.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helpful.el b/helpful.el index ae995cc..df768d2 100644 --- a/helpful.el +++ b/helpful.el @@ -484,11 +484,12 @@ state of the current symbol." (if (macrop helpful--sym) "Macro Signature\n" "Function Signature\n")) - (helpful--signature helpful--sym) - "\n\n")) + (helpful--signature helpful--sym))) (-when-let (docstring (helpful--docstring helpful--sym helpful--callable-p)) + (when helpful--callable-p + (insert "\n\n")) (insert (helpful--heading "Documentation\n") ;; TODO: a link to find this symbol in the manual, much like -- cgit v1.0