Function: ebrowse-trim-string
ebrowse-trim-string is a byte-compiled function defined in
ebrowse.el.gz.
Signature
(ebrowse-trim-string STRING)
Documentation
Return a copy of STRING with leading white space removed.
Replace sequences of newlines with a single space.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-trim-string (string)
"Return a copy of STRING with leading white space removed.
Replace sequences of newlines with a single space."
(when (string-match "^[ \t\n]+" string)
(setq string (substring string (match-end 0))))
(cl-loop while (string-match "[\n]+" string)
finally return string do
(setq string (replace-match " " nil t string))))