summaryrefslogtreecommitdiff
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2007-07-05 22:12:47 +0000
committerChong Yidong <cyd@stupidchicken.com>2007-07-05 22:12:47 +0000
commit3e318d972dc501cc609976db863bffb196e6ab0b (patch)
treea87e2f5bc784db7fef9f3e1c56e58f37dc9515c3 /lisp/wid-edit.el
parent5631b5b8467bd39aa299cf9c366cd1c6c9deb325 (diff)
downloademacs-3e318d972dc501cc609976db863bffb196e6ab0b.tar.gz
(widget-documentation-string-value-create): Insert spaces for
indentation.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 1cb32e5f951..59d960e9822 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -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))