Render nbsp as space

* eldoc-box.el (eldoc-box--fontify-html): Add support for  .
This commit is contained in:
Yuan Fu 2023-03-09 15:53:43 -08:00
parent 150ed26880
commit 41c2ac8b3b
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -723,12 +723,13 @@ height."
'invisible t))
;; Special entities.
(goto-char (point-min))
(while (re-search-forward (rx (or "<" ">")) nil t)
(while (re-search-forward (rx (or "<" ">" " ")) nil t)
(put-text-property (match-beginning 0) (match-end 0)
'display
(pcase (match-string 0)
("&lt;" "<")
("&gt;" ">"))))))
("&gt;" ">")
("&nbsp;" " "))))))
;;;; Tab-bar compatibility