aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-08-26 21:46:36 +0100
committerWilfred Hughes <me@wilfred.me.uk>2017-08-26 21:46:57 +0100
commitd257e0826303b79043bb6abff5b190fb0cad920e (patch)
treee02b1033525b5e834beb2731ae77314dd7abc8ba
parent6b0cd0530480eabdc7b588869e728ca497e4f92a (diff)
Don't append whitespace when we don't have a previous section
-rw-r--r--helpful.el5
1 files 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