Function: just-src-edit--add-indentation
just-src-edit--add-indentation is a natively compiled function defined
in just-ts-mode.el.
Signature
(just-src-edit--add-indentation CONTENT INDENTATION)
Documentation
Add INDENTATION spaces to 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--add-indentation (content indentation)
"Add INDENTATION spaces to each line of CONTENT."
(let ((lines (split-string content "\n"))
(indent-str (make-string indentation ?\s)))
(mapconcat
(lambda (line)
(if (string-match-p "^\\s-*$" line)
line
(concat indent-str line)))
lines
"\n")))