(fix): fix display of preview content (#950)

Don't modify line-breaks in preview content. Closes #630.
This commit is contained in:
Jethro Kuan 2020-07-19 13:33:01 +08:00 committed by GitHub
parent eb7ee0ef6c
commit 80390b5a84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,9 +142,7 @@ For example: (setq org-roam-buffer-window-parameters '((no-other-window . t)))"
(org-roam--get-title-or-slug file-from)))
(dolist (backlink bls)
(pcase-let ((`(,file-from _ ,props) backlink))
(insert (propertize
(s-trim (s-replace "\n" " "
(plist-get props :content)))
(insert (propertize (plist-get props :content)
'help-echo "mouse-1: visit backlinked note"
'file-from file-from
'file-from-point (plist-get props :point)))