From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: how to suppress extra newline between paragraphs in export? Date: Mon, 18 Apr 2016 17:30:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asC93-0004LJ-Rh for emacs-orgmode@gnu.org; Mon, 18 Apr 2016 12:35:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asC8f-0007x3-Qd for emacs-orgmode@gnu.org; Mon, 18 Apr 2016 12:35:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:48161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asC8f-0007wT-Iy for emacs-orgmode@gnu.org; Mon, 18 Apr 2016 12:35:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1asC8e-0000iW-4V for emacs-orgmode@gnu.org; Mon, 18 Apr 2016 18:35:04 +0200 Received: from 129.143.115.87.dyn.plus.net ([87.115.143.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Apr 2016 18:35:04 +0200 Received: from stig by 129.143.115.87.dyn.plus.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Apr 2016 18:35:04 +0200 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 Hello! 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 Then do =M-x pp-eval-expression RET (org-element-parse-buffer) RET= The output is: #+BEGIN_EXAMPLE (org-data nil (section (:begin 1 :end 7 :contents-begin 1 :contents-end 7 :post-blank 0 :post-affiliated 1 :parent #0) (paragraph (:begin 1 :end 5 :contents-begin 1 :contents-end 4 :post-blank 1 :post-affiliated 1 :parent #1) #("fi\n" 0 3 (:parent #2))) (paragraph (:begin 5 :end 7 :contents-begin 5 :contents-end 7 :post-blank 0 :post-affiliated 5 :parent #1) #("fo" 0 2 (:parent #2))))) #+END_EXAMPLE However, if you actually generate the output (for ascii, for example) you get: #+BEGIN_EXAMPLE fi fo #+END_EXAMPLE 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? Alternatively, do anyone have suggestions for how to support multi-paragraph list items? Stig