Browse Source

ox-confluence.el: Export fixed-width as example-block

* 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
Lungang Fang 8 years ago
parent
commit
2b93cec8c2
1 changed files with 4 additions and 2 deletions
  1. 4 2
      contrib/lisp/ox-confluence.el

+ 4 - 2
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)))