From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lungang Fang Subject: [PATCH] ox-confluence.el: Support quote blocks Date: Tue, 13 Dec 2016 15:22:21 +1100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114c877e1141030543829122 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGecg-0000qZ-Fe for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 23:23:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGecd-00024n-Cs for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 23:23:26 -0500 Received: from mail-qk0-f170.google.com ([209.85.220.170]:34248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGecd-00024W-71 for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 23:23:23 -0500 Received: by mail-qk0-f170.google.com with SMTP id q130so105090538qke.1 for ; Mon, 12 Dec 2016 20:23:22 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --001a114c877e1141030543829122 Content-Type: text/plain; charset=UTF-8 * 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) --001a114c877e1141030543829122 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

* contrib/lisp/ox-confluence.el (org-c= onfluence-quote-block): new function

Convert quote= blocks as shown below:
#+BEGIN_QUOTE =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 {quote}
This is a quote =C2=A0 =3D=3D> =C2=A0 This is = a quote
#+END_QUOTE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {qu= ote}
---
=C2=A0contrib/lisp/ox-confluence.el | 4 ++++
=C2=A01 file changed, 4 insertions(+)

dif= f --git a/contrib/lisp/ox-confluence.el b/contrib/lisp/ox-confluence.el
index de8b00e..9518486 100644
--- a/contrib/lisp/ox-conflu= ence.el
+++ b/contrib/lisp/ox-confluence.el
@@ -50,6 +5= 0,7 @@
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0(link . org-confluence-link)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(paragraph . = org-confluence-paragraph)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(property-drawer . org-confluence-pro= perty-drawer)
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0(quote-block . org-confluence-quote-block)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(section . org-confluence-section)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(src-block . org-confluenc= e-src-block)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(strike-through . org-confluence-strike-through)
@@ -128,6 +129,9 @@ a communication channel."
=C2=A0= =C2=A0(and (org-string-nw-p contents)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 (format "\{\{%s\}\}" contents)))

+(d= efun org-confluence-quote-block (quote-block contents info)
+ =C2= =A0(format "{quote}\n%s{quote}" contents))
+
= =C2=A0(defun org-confluence-section (section contents info)
=C2= =A0 =C2=A0contents)

--
2.9.3 (Apple Git-= 75)
--001a114c877e1141030543829122--