changeset 90976:cc8cd7525cf0

(widget-documentation-string-value-create): Insert spaces for indentation.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 05 Jul 2007 22:12:47 +0000
parents aa60bfc993a6
children fa467ab99f58
files lisp/wid-edit.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/wid-edit.el	Thu Jul 05 22:12:34 2007 +0000
+++ b/lisp/wid-edit.el	Thu Jul 05 22:12:47 2007 +0000
@@ -2910,6 +2910,8 @@
 	(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 @@
 	    (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))