File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,12 @@ opposite of what that option dictates."
116
116
(let ((arglists (nrepl-dict-get dict " arglists" )))
117
117
(dolist (arglist arglists)
118
118
(insert (format " [%s ]\n " arglist)))
119
- (insert " \n " )
120
- (insert (nrepl-dict-get dict " doc" ))
121
- (insert " \n " ))
119
+ (when-let* ((doc (nrepl-dict-get dict " doc" ))
120
+ ; ; As this is a literal docstring from the source code and
121
+ ; ; there are two spaces at the beginning of lines in docstrings,
122
+ ; ; we remove them to make it align nicely in ClojureDocs buffer.
123
+ (doc (replace-regexp-in-string " \n " " \n " doc)))
124
+ (insert " \n " doc " \n " )))
122
125
(insert " \n == See Also\n\n " )
123
126
(if-let ((see-alsos (nrepl-dict-get dict " see-alsos" )))
124
127
(dolist (see-also see-alsos)
You can’t perform that action at this time.
0 commit comments