ox-confluence.el: Add support for ordered list

* contrib/lisp/ox-confluence.el (org-confluence-item): Support ordered
list

When converting a bullet item, examine the type of it and convert
accordingly.

TINYCHANGE
This commit is contained in:
Lungang Fang 2016-12-07 17:26:04 +11:00 committed by Nicolas Goaziou
parent 5e3fe91b7c
commit f184ee9d2d

View file

@ -81,9 +81,12 @@
(format "_%s_" contents))
(defun org-confluence-item (item contents info)
(concat (make-string (1+ (org-confluence--li-depth item)) ?\-)
" "
(org-trim contents)))
(let* ((plain-list (org-export-get-parent item))
(type (org-element-property :type plain-list))
(bullet (if (eq type `ordered) ?\# ?\-)))
(concat (make-string (1+ (org-confluence--li-depth item)) bullet)
" "
(org-trim contents))))
(defun org-confluence-fixed-width (fixed-width contents info)
(format "\{\{%s\}\}" contents))