Function: s-collapse-whitespace

s-collapse-whitespace is a byte-compiled function defined in s.el.

Signature

(s-collapse-whitespace S)

Documentation

Convert all adjacent whitespace characters to a single space.

Source Code

;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-collapse-whitespace (s)
  "Convert all adjacent whitespace characters to a single space."
  (declare (pure t) (side-effect-free t))
  (replace-regexp-in-string "[ \t\n\r]+" " " s))