diff lisp/info.el @ 10918:a78b47b38c46

(Info-extract-menu-node-name): Collapse multiple spaces.
author Richard M. Stallman <rms@gnu.org>
date Mon, 06 Mar 1995 04:25:29 +0000
parents a66a29e6efc9
children 6d3568e33019
line wrap: on
line diff
--- a/lisp/info.el	Mon Mar 06 04:17:49 1995 +0000
+++ b/lisp/info.el	Mon Mar 06 04:25:29 1995 +0000
@@ -858,6 +858,9 @@
 	    (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.