* [PATCH] ox-confluence.el: Support quote blocks
@ 2016-12-13 4:22 Lungang Fang
2016-12-13 13:00 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Lungang Fang @ 2016-12-13 4:22 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1246 bytes --]
* contrib/lisp/ox-confluence.el (org-confluence-quote-block): new function
Convert quote blocks as shown below:
#+BEGIN_QUOTE {quote}
This is a quote ==> This is a quote
#+END_QUOTE {quote}
---
contrib/lisp/ox-confluence.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/lisp/ox-confluence.el b/contrib/lisp/ox-confluence.el
index de8b00e..9518486 100644
--- a/contrib/lisp/ox-confluence.el
+++ b/contrib/lisp/ox-confluence.el
@@ -50,6 +50,7 @@
(link . org-confluence-link)
(paragraph . org-confluence-paragraph)
(property-drawer . org-confluence-property-drawer)
+ (quote-block . org-confluence-quote-block)
(section . org-confluence-section)
(src-block . org-confluence-src-block)
(strike-through . org-confluence-strike-through)
@@ -128,6 +129,9 @@ a communication channel."
(and (org-string-nw-p contents)
(format "\{\{%s\}\}" contents)))
+(defun org-confluence-quote-block (quote-block contents info)
+ (format "{quote}\n%s{quote}" contents))
+
(defun org-confluence-section (section contents info)
contents)
--
2.9.3 (Apple Git-75)
[-- Attachment #2: Type: text/html, Size: 1769 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ox-confluence.el: Support quote blocks
2016-12-13 4:22 [PATCH] ox-confluence.el: Support quote blocks Lungang Fang
@ 2016-12-13 13:00 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-12-13 13:00 UTC (permalink / raw)
To: Lungang Fang; +Cc: emacs-orgmode
Hello,
Lungang Fang <lungang.fang@gmail.com> writes:
> * contrib/lisp/ox-confluence.el (org-confluence-quote-block): new function
>
> Convert quote blocks as shown below:
>
> #+BEGIN_QUOTE {quote}
> This is a quote ==> This is a quote
> #+END_QUOTE {quote}
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-13 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-13 4:22 [PATCH] ox-confluence.el: Support quote blocks Lungang Fang
2016-12-13 13:00 ` 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.