Function: s-word-wrap
s-word-wrap is a byte-compiled function defined in s.el.
Signature
(s-word-wrap LEN S)
Documentation
If S is longer than LEN, wrap the words with newlines.
Source Code
;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-word-wrap (len s)
"If S is longer than LEN, wrap the words with newlines."
(declare (side-effect-free t))
(save-match-data
(with-temp-buffer
(insert s)
(let ((fill-column len))
(fill-region (point-min) (point-max)))
(buffer-substring (point-min) (point-max)))))