Function: eshell-to-flat-string

eshell-to-flat-string is a byte-compiled function defined in esh-util.el.gz.

Signature

(eshell-to-flat-string VALUE)

Documentation

Make value a string. If separated by newlines change them to spaces.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-util.el.gz
(defun eshell-to-flat-string (value)
  "Make value a string.  If separated by newlines change them to spaces."
  (let ((text (eshell-stringify value)))
    (if (string-match "\n+\\'" text)
	(setq text (replace-match "" t t text)))
    (while (string-match "\n+" text)
      (setq text (replace-match " " t t text)))
    text))