Function: ghostel--clean-copy-text
ghostel--clean-copy-text is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--clean-copy-text TEXT)
Documentation
Clean TEXT for copying: remove soft-wrap newlines, strip trailing whitespace.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--clean-copy-text (text)
"Clean TEXT for copying: remove soft-wrap newlines, strip trailing whitespace."
(let* ((unwrapped (ghostel--filter-soft-wraps text))
(lines (split-string unwrapped "\n"))
(trimmed (mapcar (lambda (line) (string-trim-right line)) lines)))
(mapconcat #'identity trimmed "\n")))