Function: hpath:trim

hpath:trim is a byte-compiled function defined in hpath.el.

Signature

(hpath:trim PATH)

Documentation

Return PATH with any [" \t\n\r] characters trimmed from its start and end.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:trim (path)
  "Return PATH with any [\" \\t\\n\\r] characters trimmed from its start and end."
  ;; Trim only matching starting and ending quoted double quotes (must
  ;; be a single line string).
  (setq path (string-trim path))
  (when (string-match "\\`\".*\"\\'" path)
    (setq path (string-trim path "\"" "\"")))
  path)