emacs-orgmode
[Top][All Lists]
Advanced

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

[O] [PATCH] ox-confluence.el: Fix error in `org-confluence-fixed-width`


From: Lungang Fang
Subject: [O] [PATCH] ox-confluence.el: Fix error in `org-confluence-fixed-width`
Date: Tue, 13 Dec 2016 15:16:52 +1100


* contrib/lisp/ox-confluence.el (org-confluence-fixed-width): retrieve
  value of org element "fixed-width" instead of using "content", which
  is empty.
---
 contrib/lisp/ox-confluence.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/lisp/ox-confluence.el b/contrib/lisp/ox-confluence.el
index de8b00e..98d9ed5 100644
--- a/contrib/lisp/ox-confluence.el
+++ b/contrib/lisp/ox-confluence.el
@@ -89,7 +89,8 @@
             (org-trim contents))))

 (defun org-confluence-fixed-width (fixed-width contents info)
-  (format "\{\{%s\}\}" contents))
+  (format "\{\{%s\}\}"
+         (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]