emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] ox-confluence.el: export fixed-width as example-block


From: Lungang Fang
Subject: [O] [PATCH] ox-confluence.el: export fixed-width as example-block
Date: Wed, 14 Dec 2016 21:19:18 +1100

* contrib/lisp/ox-confluence.el (org-confluence-fixed-width):
export fixed-width as example-block so that the outcome is more
consistent with org-mode format. Other back-ends (say ox-md.el)
also work this way.

TINYCHANGE
---
 contrib/lisp/ox-confluence.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/ox-confluence.el b/contrib/lisp/ox-confluence.el
index 95a674e..65b63d8 100644
--- a/contrib/lisp/ox-confluence.el
+++ b/contrib/lisp/ox-confluence.el
@@ -94,8 +94,10 @@
             (org-trim contents))))

 (defun org-confluence-fixed-width (fixed-width contents info)
-  (format "\{\{%s\}\}"
-         (org-trim (org-element-property :value fixed-width))))
+  (org-confluence--block
+   "none"
+   "Confluence"
+   (org-trim (org-element-property :value fixed-width))))

 (defun org-confluence-verbatim (verbatim contents info)
   (format "\{\{%s\}\}" (org-element-property :value verbatim)))
-- 
2.9.3 (Apple Git-75)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]