Function: just-src-edit--remove-indentation
just-src-edit--remove-indentation is a natively compiled function
defined in just-ts-mode.el.
Signature
(just-src-edit--remove-indentation CONTENT INDENTATION)
Documentation
Remove INDENTATION spaces from each line of CONTENT.
Source Code
;; Defined in /nix/store/1vmf8s52d6vniw28ckf3szxslimhfphb-emacs-packages-deps/share/emacs/site-lisp/elpa/just-ts-mode-20260319.1513/just-ts-mode.el
(defun just-src-edit--remove-indentation (content indentation)
"Remove INDENTATION spaces from each line of CONTENT."
(let ((lines (split-string content "\n")))
(mapconcat
(lambda (line)
(if (string-match-p "^\\s-*$" line)
line
(if (and (>= (length line) indentation)
(string-prefix-p (make-string indentation ?\s) line))
(substring line indentation)
line)))
lines
"\n")))