Function: org-ascii--current-justification
org-ascii--current-justification is a byte-compiled function defined
in ox-ascii.el.gz.
Signature
(org-ascii--current-justification ELEMENT)
Documentation
Return expected justification for ELEMENT's contents.
Return value is a symbol among left, center, right and
full.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-ascii.el.gz
(defun org-ascii--current-justification (element)
"Return expected justification for ELEMENT's contents.
Return value is a symbol among `left', `center', `right' and
`full'."
(let (justification)
(while (and (not justification)
(setq element (org-element-property :parent element)))
(pcase (org-element-type element)
(`center-block (setq justification 'center))
(`special-block
(let ((name (org-element-property :type element)))
(cond ((string= name "JUSTIFYRIGHT") (setq justification 'right))
((string= name "JUSTIFYLEFT") (setq justification 'left)))))))
(or justification 'left)))