Function: newsticker--remove-whitespace

newsticker--remove-whitespace is a byte-compiled function defined in newst-backend.el.gz.

Signature

(newsticker--remove-whitespace STRING)

Documentation

Remove leading and trailing whitespace from STRING.

Source Code

;; Defined in /usr/src/emacs/lisp/net/newst-backend.el.gz
(defun newsticker--remove-whitespace (string)
  "Remove leading and trailing whitespace from STRING."
  ;; we must have ...+ but not ...* in the regexps otherwise xemacs loops
  ;; endlessly...
  (when (and string (stringp string))
    (replace-regexp-in-string
     "[ \t\r\n]+$" ""
     (replace-regexp-in-string "^[ \t\r\n]+" "" string))))