# HG changeset patch # User Chong Yidong # Date 1183673567 0 # Node ID cc8cd7525cf05008e204cd0dd53da197cff55f3e # Parent aa60bfc993a60e256e7788a429160029c31db69c (widget-documentation-string-value-create): Insert spaces for indentation. diff -r aa60bfc993a6 -r cc8cd7525cf0 lisp/wid-edit.el --- 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))