Function: org-remove-indentation
org-remove-indentation is a byte-compiled function defined in
org-macs.el.
Signature
(org-remove-indentation CODE &optional N)
Documentation
Remove maximum common indentation in string CODE and return it.
N may optionally be the number of columns to remove. Return CODE as-is if removal failed.
Aliases
org-element-remove-indentation (obsolete since 9.0)
Source Code
;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-macs.el
(defun org-remove-indentation (code &optional n)
"Remove maximum common indentation in string CODE and return it.
N may optionally be the number of columns to remove. Return CODE
as-is if removal failed."
(with-temp-buffer
(insert code)
(if (org-do-remove-indentation n) (buffer-string) code)))