changeset 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 283f18021929
children ebae5c953523
files lisp/info.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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.