summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2007-07-05 22:10:48 +0000
committerChong Yidong <cyd@stupidchicken.com>2007-07-05 22:10:48 +0000
commit33f400c3152114b1e4368425e0c57e2ae213558c (patch)
treed0521bc5823535a851ef8dbc08cdb6adba56a302
parent61af0f396e7ec8864b852d9953406076b58312f4 (diff)
downloademacs-33f400c3152114b1e4368425e0c57e2ae213558c.tar.gz
(widget-documentation-string-value-create): Insert indentation spaces.
-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 a69ebdc85e9..f58b1515f7b 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))