Browse Source

Add support for ordered list to ox-confluence.el

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

When converting a descriptive list item, be sure to include the "item"
part, not just the description.

TINYCHANGE
Charles Durst 8 years ago
parent
commit
9e5bdb04d7
1 changed files with 5 additions and 1 deletions
  1. 5 1
      contrib/lisp/ox-confluence.el

+ 5 - 1
contrib/lisp/ox-confluence.el

@@ -83,9 +83,13 @@
 (defun org-confluence-item (item contents info)
   (let* ((plain-list (org-export-get-parent item))
          (type (org-element-property :type plain-list))
-         (bullet (if (eq type `ordered) ?\# ?\-)))
+         (bullet (if (eq type 'ordered) ?\# ?\-)))
     (concat (make-string (1+ (org-confluence--li-depth item)) bullet)
             " "
+    (if (eq type 'descriptive)
+ (concat "*"
+ (org-export-data (org-element-property :tag item) info)
+ "* - "))
             (org-trim contents))))
 
 (defun org-confluence-fixed-width (fixed-width contents info)