From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] (fixed) ox-confluence.el: Do not generate filled paragraphs Date: Fri, 04 Mar 2016 01:42:41 +0100 Message-ID: <87d1rbvzsu.fsf@nicolasgoaziou.fr> References: <1457042145.2169185.539000906.0E8F7FBC@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abdnN-0005ya-4Q for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 19:40:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abdnJ-0001ut-Us for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 19:40:41 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abdnJ-0001up-J7 for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 19:40:37 -0500 In-Reply-To: <1457042145.2169185.539000906.0E8F7FBC@webmail.messagingengine.com> (M. P. Ashton's message of "Thu, 03 Mar 2016 16:55:45 -0500") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "M. P. Ashton" Cc: =?utf-8?Q?S=C3=A9bastien?= Delafond , emacs-orgmode@gnu.org Hello, "M. P. Ashton" writes: > * contrib/lisp/ox-confluence.el: Do not generate filled paragraphs > > ox-confluence was generating filled paragraphs. Since Confluence treats > each newline as a line break, this caused unexpected formatting. Added > a paragraph function to generate unfilled paragraphs (taken from > ox-md.el). > --- > contrib/lisp/ox-confluence.el | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/contrib/lisp/ox-confluence.el > b/contrib/lisp/ox-confluence.el > index 9b96d5f..4304e5d 100644 > --- a/contrib/lisp/ox-confluence.el > +++ b/contrib/lisp/ox-confluence.el > @@ -47,6 +47,7 @@ > (italic . org-confluence-italic) > (item . org-confluence-item) > (link . org-confluence-link) > + (paragraph . org-confluence-paragraph) > (property-drawer . org-confluence-property-drawer) > (section . org-confluence-section) > (src-block . org-confluence-src-block) > @@ -58,6 +59,12 @@ > (underline . org-confluence-underline))) > > ;; All the functions we use > +(defun org-confluence-paragraph (paragraph contents info) > + "Transcode PARAGRAPH element for Confluence. > +CONTENTS is the paragraph contents. INFO is a plist used as > +a communication channel." > + contents) This function doesn't unfill the paragraph. It merely returns it as it was in the original Org document. You possibly want to call `replace-regexp-in-string' and replace "\n" with " " in CONTENTS. I'm Cc'ing the author since this is a contrib/ package. Regards, -- Nicolas Goaziou