aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMekeor Melire <mekeor@posteo.de>2023-05-03 20:16:28 +0200
committerWilfred Hughes <me@wilfred.me.uk>2023-05-04 08:46:20 -0700
commit32cb28b50b3366ad35e2cb936367268ddeec745f (patch)
tree1229f0f1a6553425a901c771e0c642a1c3a4b6a7
parent8893e4ba49e4447b41ee08d93e58c23e07bc7514 (diff)
helpful--heading: propertize newline as well, enabling `:extend t`
Prior to this commit, setting attribute :extend of the face helpful--heading to t did not take any effect. This is fixed by this commit by propertizing the newline right after the heading as well.
-rw-r--r--helpful.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index 3c229b1..aeb5f84 100644
--- a/helpful.el
+++ b/helpful.el
@@ -167,7 +167,7 @@ can make Helpful very slow.")
(defun helpful--heading (text)
"Propertize TEXT as a heading."
- (format "%s\n" (propertize text 'face 'helpful-heading)))
+ (propertize (concat text "\n") 'face 'helpful-heading))
(defun helpful--format-closure (sym form)
"Given a closure, return an equivalent defun form."