all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] ox-confluence.el: export fixed-width as example-block
@ 2016-12-14 10:19 Lungang Fang
  2016-12-14 12:23 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Lungang Fang @ 2016-12-14 10:19 UTC (permalink / raw)
  To: emacs-orgmode

* 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)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ox-confluence.el: export fixed-width as example-block
  2016-12-14 10:19 [PATCH] ox-confluence.el: export fixed-width as example-block Lungang Fang
@ 2016-12-14 12:23 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-12-14 12:23 UTC (permalink / raw)
  To: Lungang Fang; +Cc: emacs-orgmode

Hello,

Lungang Fang <lungang.fang@gmail.com> writes:

> * 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.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-14 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-14 10:19 [PATCH] ox-confluence.el: export fixed-width as example-block Lungang Fang
2016-12-14 12:23 ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.