changeset 109023:8d29522e59d4

* lisp/descr-text.el (describe-char): Avoid trailing whitespace. (Bug#6423)
author Glenn Morris <rgm@gnu.org>
date Fri, 18 Jun 2010 19:39:04 -0700
parents bd9d982851e0
children f24aeaefbe37
files lisp/ChangeLog lisp/descr-text.el
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jun 18 10:05:43 2010 -0400
+++ b/lisp/ChangeLog	Fri Jun 18 19:39:04 2010 -0700
@@ -1,3 +1,7 @@
+2010-06-19  Gustav HÃ¥llberg  <gustav@gmail.com>  (tiny change)
+
+	* descr-text.el (describe-char): Avoid trailing whitespace.  (Bug#6423)
+
 2010-06-18  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* emacs-lisp/edebug.el (edebug-read-list):
--- a/lisp/descr-text.el	Fri Jun 18 10:05:43 2010 -0400
+++ b/lisp/descr-text.el	Fri Jun 18 19:39:04 2010 -0700
@@ -618,7 +618,7 @@
               ,@(if (not eight-bit-p)
                     (let ((unicodedata (describe-char-unicode-data char)))
                       (if unicodedata
-                          (cons (list "Unicode data" " ") unicodedata))))))
+                          (cons (list "Unicode data" "") unicodedata))))))
       (setq max-width (apply 'max (mapcar (lambda (x)
                                             (if (cadr x) (length (car x)) 0))
                                           item-list)))
@@ -642,7 +642,8 @@
                               (window-width))
                       (insert "\n")
                       (indent-to (1+ max-width)))
-                    (insert " " clm)))
+                    (unless (zerop (length clm))
+                      (insert " " clm))))
                 (insert "\n"))))
 
           (when overlays