Skip to content

Commit bf69f98

Browse files
committed
[lsp-ui-doc] Remove newlines at the beginning of the doc
1 parent 71c1a57 commit bf69f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-ui-doc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ FN is the function to call on click."
439439
(erase-buffer)
440440
(let ((inline-p (lsp-ui-doc--inline-p)))
441441
(insert (concat (unless inline-p (propertize "\n" 'face '(:height 0.2)))
442-
(string-trim-right string)
442+
(string-trim string "[\n]+")
443443
(unless inline-p (propertize "\n\n" 'face '(:height 0.3))))))
444444
(lsp-ui-doc--make-clickable-link)
445445
(setq-local face-remapping-alist `((header-line lsp-ui-doc-header)))

0 commit comments

Comments
 (0)