1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(widget-documentation-string-value-create): Insert indentation spaces.

This commit is contained in:
Chong Yidong 2007-07-05 22:10:48 +00:00
parent 61af0f396e
commit 33f400c315

View file

@ -2910,6 +2910,8 @@ link for that string."
(let ((before (substring doc 0 (match-beginning 0)))
(after (substring doc (match-beginning 0)))
button)
(when (and indent (not (zerop indent)))
(insert-char ?\s indent))
(insert before ?\s)
(widget-documentation-link-add widget start (point))
(setq button
@ -2928,6 +2930,8 @@ link for that string."
(insert after)
(widget-documentation-link-add widget start (point)))
(widget-put widget :buttons (list button)))
(when (and indent (not (zerop indent)))
(insert-char ?\s indent))
(insert doc)
(widget-documentation-link-add widget start (point))))
(insert ?\n))