* textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert
authorRichard Kim <emacs18@gmail.com>
Sun, 3 Jul 2011 16:11:37 +0000 (18:11 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 3 Jul 2011 16:11:37 +0000 (18:11 +0200)
unnecessary spaces.

Fixes: debbugs:8987

lisp/ChangeLog
lisp/textmodes/texnfo-upd.el

index 09e0509..6949d77 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-03  Richard Kim <emacs18@gmail.com> (tiny change)
+
+       * textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert
+       unnecessary spaces (bug#8987).
+
 2011-07-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * net/network-stream.el (open-network-stream): Use the
index 12a3e2a..047bba7 100644 (file)
@@ -687,7 +687,7 @@ is the menu entry name, and the cdr of P is the node name."
        (insert (format "%s: %s." (car node-part) (cdr node-part)))))
 
     ;; Insert the description, if present.
-    (when (cdr menu)
+    (when (> (length (cdr menu)) 0)
       ;; Move to right place.
       (indent-to texinfo-column-for-description 2)
       ;; Insert description.