From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: how to suppress extra newline between paragraphs in export? Date: Mon, 18 Apr 2016 18:46:21 +0200 Message-ID: <87ega2eug2.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asCHX-0001nm-UX for emacs-orgmode@gnu.org; Mon, 18 Apr 2016 12:44:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asCHT-0004tb-NP for emacs-orgmode@gnu.org; Mon, 18 Apr 2016 12:44:15 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asCHT-0004sV-HD for emacs-orgmode@gnu.org; Mon, 18 Apr 2016 12:44:11 -0400 In-Reply-To: (Stig Brautaset's message of "Mon, 18 Apr 2016 17:30:57 +0100") 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: Stig Brautaset Cc: emacs-orgmode@gnu.org Hello, Stig Brautaset writes: > I've got a question I hope you might be able to answer. I'm trying to > add multi-paragraph item support to plain lists to my ox-jira.el > package. c.f. https://github.com/stig/ox-jira.el/issues/17 > > The issue I have is that I want to replace the blank line between > paragraphs in list items (which in JIRA ends the list and starts a new > paragraph) with the string =\\=. However, even when instrumenting > paragraph to check if its parent is an item (I'm being simplistic here) > there's a blank line I can't get at. > > You can see it in an org document as simple as this, actually: > > #+BEGIN_EXAMPLE > fi > > fo > #+END_EXAMPLE [...] > (paragraph > (:begin 1 :end 5 :contents-begin 1 :contents-end 4 :post-blank 1 :post-affiliated 1 :parent #1) ^^^ blank line [...] > So there's an extra newline before =fo= that no transpose functions are > responsible for, as far as I can see. Is it possible to get at this > somehow? You can set the :post-blank value to 0 using a parse tree filter. See for example `org-md-separate-elements'. Regards, -- Nicolas Goaziou