diff --git a/lisp/ox-html.el b/lisp/ox-html.el index ef8c9b546..bb29d4a35 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2557,21 +2557,22 @@ holding contextual information." (cdr ids) ""))) (if (org-export-low-level-p headline info) ;; This is a deep sub-tree: export it as a list item. - (let* ((type (if numberedp 'ordered 'unordered)) - (itemized-body - (org-html-format-list-item - contents type nil info nil + (let* ((html-type (if numberedp "ol" "ul"))) + (concat + (and (org-export-first-sibling-p headline info) + (apply 'format "<%s class=\"org-%s\">" + (make-list 2 html-type))) + (org-html-format-list-item + contents (if numberedp 'ordered 'unordered) + nil info nil (concat (org-html--anchor preferred-id nil nil info) extra-ids - full-text)))) - (concat (and (org-export-first-sibling-p headline info) - (org-html-begin-plain-list type)) - itemized-body - (and (org-export-last-sibling-p headline info) - (org-html-end-plain-list type)))) + full-text)) + (and (org-export-last-sibling-p headline info) + (format "%s>" html-type)))) + ;; Standard headline. Export it as a section. (let ((extra-class (org-element-property :HTML_CONTAINER_CLASS headline)) (first-content (car (org-element-contents headline)))) - ;; Standard headline. Export it as a section. (format "<%s id=\"%s\" class=\"%s\">%s%s%s>\n" (org-html--container headline info) (concat "outline-container-" @@ -3138,34 +3139,26 @@ the plist used as a communication channel." ;;;; Plain List -;; FIXME Maybe arg1 is not needed because