Function: s-unindent

s-unindent is a byte-compiled function defined in s.el.

Signature

(s-unindent S &optional BOL)

Documentation

Unindent S which has BOL (beginning of line) indicators.

BOL will default to pipe. You can optionally supply your own.

Source Code

;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-unindent (s &optional bol)
  "Unindent S which has BOL (beginning of line) indicators.
BOL will default to pipe. You can optionally supply your own."
  (declare (pure t) (side-effect-free t))
  (let ((case-fold-search nil)
        (bol (or bol "|")))
   (s-replace-regexp (concat "^[[:space:]]*" (regexp-quote bol)) "" s)))