aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-06-19 00:16:07 +0100
committerWilfred Hughes <me@wilfred.me.uk>2018-06-19 00:16:07 +0100
commit83b915b88f5a50abe496be23112e23a608949eef (patch)
treef498555f32b1f211c10e307bea254aca428daa0d /helpful.el
parent99ee4bec41c7fc82c3f96c54ca79fa649451074e (diff)
Handle another docstring URL syntax
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpful.el b/helpful.el
index c48e7dc..a2015b8 100644
--- a/helpful.el
+++ b/helpful.el
@@ -883,10 +883,10 @@ unescaping too."
(defun helpful--propertize-bare-links (docstring)
"Convert URL links in docstrings to buttons."
(replace-regexp-in-string
- (rx (group (or string-start space))
+ (rx (group (or string-start space "<"))
(group "http" (? "s") "://" (+? (not (any space))))
(group (? (any "." ">" ")"))
- (or space string-end)))
+ (or space string-end ">")))
(lambda (match)
(let ((space-before (match-string 1 match))
(url (match-string 2 match))