diff options
author | Lungang Fang <lungang.fang@gmail.com> | 2016-12-07 17:26:04 +1100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-12-09 21:33:47 +0100 |
commit | f184ee9d2d3ea5b409679d1b96ba281987e88096 (patch) | |
tree | f0f267361e0130ad944af46dc62777e5c3db452a | |
parent | 5e3fe91b7c6da14fe6d9cf0876339d4d503cf052 (diff) | |
download | org-mode-f184ee9d2d3ea5b409679d1b96ba281987e88096.tar.gz |
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
-rw-r--r-- | contrib/lisp/ox-confluence.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/lisp/ox-confluence.el b/contrib/lisp/ox-confluence.el index 5de9e0f..de8b00e 100644 --- a/contrib/lisp/ox-confluence.el +++ b/contrib/lisp/ox-confluence.el @@ -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)) |