Function: eshell-to-flat-string
eshell-to-flat-string is a byte-compiled function defined in
esh-util.el.gz.
This function is obsolete since 29.1.
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."
(declare (obsolete nil "29.1"))
(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))