# HG changeset patch # User Luc Teirlinck # Date 1055905403 0 # Node ID 08d1ae28e56833bcfa98a776c5a2b8d61b894bd9 # Parent ff5ee3a81a6ecfbb86a355772c4bb5b11de3b4a5 (Info-fontify-node): Give only the last whitespace character after the node name the display property. Give all other such whitespace the invisibility property. diff -r ff5ee3a81a6e -r 08d1ae28e568 lisp/info.el --- a/lisp/info.el Wed Jun 18 02:58:36 2003 +0000 +++ b/lisp/info.el Wed Jun 18 03:03:23 2003 +0000 @@ -2946,11 +2946,11 @@ '(font-lock-face info-xref mouse-face highlight)))) (when (eq Info-hide-note-references t) - (put-text-property (match-beginning 2) (match-beginning 4) + (put-text-property (match-beginning 2) (1- (match-end 4)) 'invisible t) ;; We need a stretchable space like :align-to but with ;; a minimum value. - (put-text-property (match-beginning 4) (match-end 4) 'display + (put-text-property (1- (match-end 4)) (match-end 4) 'display (if (>= 22 (- (match-end 1) (match-beginning 0))) '(space :align-to 24) @@ -2958,7 +2958,10 @@ (setq cont (looking-at ".")) (while (and (= (forward-line 1) 0) (looking-at "\\([ \t]+\\)[^*\n]")) - (put-text-property (match-beginning 1) (match-end 1) 'display + (put-text-property (match-beginning 1) (1- (match-end 1)) + 'invisible t) + (put-text-property (1- (match-end 1)) (match-end 1) + 'display (if cont '(space :align-to 26) '(space :align-to 24)))