]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-extract-menu-node-name): Collapse multiple spaces.
authorRichard M. Stallman <rms@gnu.org>
Mon, 6 Mar 1995 04:25:29 +0000 (04:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 6 Mar 1995 04:25:29 +0000 (04:25 +0000)
lisp/info.el

index 3a2d1f954c7b4128015ba18f2fd916a3c91e0f7f..f250957ab80222ffa252f4537087370b4398e956 100644 (file)
@@ -858,6 +858,9 @@ NAME may be an abbreviation of the reference name."
            (Info-following-node-name (if multi-line "^.,\t" "^.,\t\n"))))
     (while (setq i (string-match "\n" str i))
       (aset str i ?\ ))
+    ;; Collapse multiple spaces.
+    (while (string-match "  +" str)
+      (setq str (replace-match " " t t str)))
     str))
 
 ;; No one calls this.