1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

(Info-extract-menu-node-name): Collapse multiple spaces.

This commit is contained in:
Richard M. Stallman 1995-03-06 04:25:29 +00:00
parent f4c8ded2b0
commit 2e52ff59e5

View 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.