Function: longlines-encode-string
longlines-encode-string is a byte-compiled function defined in
longlines.el.gz.
Signature
(longlines-encode-string STRING)
Documentation
Return a copy of STRING with each soft newline replaced by a space.
Hard newlines are left intact.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/longlines.el.gz
(defun longlines-encode-string (string)
"Return a copy of STRING with each soft newline replaced by a space.
Hard newlines are left intact."
(let* ((str (copy-sequence string))
(pos (string-search "\n" str)))
(while pos
(if (null (get-text-property pos 'hard str))
(aset str pos ? ))
(setq pos (string-search "\n" str (1+ pos))))
str))