Function: org-remove-indentation

org-remove-indentation is a byte-compiled function defined in org-macs.el.gz.

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 /usr/src/emacs/lisp/org/org-macs.el.gz
(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)))