Function: cider--string-rstrip-newlines

cider--string-rstrip-newlines is a byte-compiled function defined in cider-docstring.el.

Signature

(cider--string-rstrip-newlines STR)

Documentation

Remove newlines at the end of STR.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-docstring.el
(defun cider--string-rstrip-newlines (str)
  "Remove newlines at the end of STR."
  (if (string-match "\\([\n\r]+\\)$" str)
      (replace-match "" nil nil str)
    str))