From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lungang Fang Subject: [PATCH] ox-confluence.el: export fixed-width as example-block Date: Wed, 14 Dec 2016 21:19:18 +1100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cH6fe-0002Ar-Dx for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:20:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cH6fb-0002Rp-9A for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:20:22 -0500 Received: from mail-qt0-f175.google.com ([209.85.216.175]:33794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cH6fb-0002Rd-5F for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 05:20:19 -0500 Received: by mail-qt0-f175.google.com with SMTP id n6so14279602qtd.1 for ; Wed, 14 Dec 2016 02:20:19 -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 * 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)