# HG changeset patch # User Richard M. Stallman # Date 794463929 0 # Node ID a78b47b38c4618cc066826d1a3a558638f30b10e # Parent 283f1802192902e75a2f104a6e73da2c438be00f (Info-extract-menu-node-name): Collapse multiple spaces. diff -r 283f18021929 -r a78b47b38c46 lisp/info.el --- 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.