Function: org-odt-plain-list

org-odt-plain-list is a byte-compiled function defined in ox-odt.el.gz.

Signature

(org-odt-plain-list PLAIN-LIST CONTENTS INFO)

Documentation

Transcode a PLAIN-LIST element from Org to ODT.

CONTENTS is the contents of the list. INFO is a plist holding contextual information.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-odt.el.gz
;;;; Plain List

(defun org-odt-plain-list (plain-list contents _info)
  "Transcode a PLAIN-LIST element from Org to ODT.
CONTENTS is the contents of the list.  INFO is a plist holding
contextual information."
  (format "\n<text:list text:style-name=\"%s\" %s>\n%s</text:list>"
	  ;; Choose style based on list type.
	  (cl-case (org-element-property :type plain-list)
	    (ordered "OrgNumberedList")
	    (unordered "OrgBulletedList")
	    (descriptive-1 "OrgDescriptionList")
	    (descriptive-2 "OrgDescriptionList"))
	  ;; If top-level list, re-start numbering.  Otherwise,
	  ;; continue numbering.
	  (format "text:continue-numbering=\"%s\""
		  (let* ((parent (org-element-parent plain-list)))
		    (if (and parent (org-element-type-p parent 'item))
			"true" "false")))
	  contents))