From: Richard M. Stallman Date: Mon, 6 Mar 1995 04:25:29 +0000 (+0000) Subject: (Info-extract-menu-node-name): Collapse multiple spaces. X-Git-Tag: emacs-19.34~4940 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2e52ff59e5c0c7c7f3d376d48ddd33cf98cfe491;p=emacs.git (Info-extract-menu-node-name): Collapse multiple spaces. --- diff --git a/lisp/info.el b/lisp/info.el index 3a2d1f954c7..f250957ab80 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -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.