Function: org--do-wrap

org--do-wrap is a byte-compiled function defined in org-macs.el.

Signature

(org--do-wrap WORDS WIDTH)

Documentation

Create lines of maximum width WIDTH (in characters) from word list WORDS.

Source Code

;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-macs.el
(defun org--do-wrap (words width)
  "Create lines of maximum width WIDTH (in characters) from word list WORDS."
  (let (lines line)
    (while words
      (setq line (pop words))
      (while (and words (< (+ (length line) (length (car words))) width))
	(setq line (concat line " " (pop words))))
      (setq lines (push line lines)))
    (nreverse lines)))