File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 25
25
26
26
; ;; Code:
27
27
28
+ (require 'subr-x )
29
+ (require 'url-vars )
30
+
28
31
(require 'cider-client )
29
32
(require 'cider-common )
30
- (require 'subr-x )
33
+ (require 'cider-docstring )
31
34
(require 'cider-popup )
32
35
(require 'cider-util )
33
-
34
36
(require 'nrepl-dict )
35
37
36
- (require 'url-vars )
37
-
38
38
(defconst cider-clojuredocs-url " https://clojuredocs.org/" )
39
39
40
40
(defconst cider-clojuredocs-buffer " *cider-clojuredocs*" )
@@ -120,10 +120,7 @@ opposite of what that option dictates."
120
120
(insert (format " [%s ]\n " arglist)))
121
121
(newline ))
122
122
(when-let* ((doc (nrepl-dict-get dict " doc" ))
123
- ; ; As this is a literal docstring from the source code and
124
- ; ; there are two spaces at the beginning of lines in docstrings,
125
- ; ; we remove them to make it align nicely in ClojureDocs buffer.
126
- (doc (replace-regexp-in-string " \n " " \n " doc)))
123
+ (doc (cider-docstring--format doc)))
127
124
(insert doc " \n " )
128
125
(newline )))
129
126
You can’t perform that action at this time.
0 commit comments