emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] how to suppress extra newline between paragraphs in export?


From: Nicolas Goaziou
Subject: Re: [O] how to suppress extra newline between paragraphs in export?
Date: Mon, 18 Apr 2016 18:46:21 +0200

Hello,

Stig Brautaset <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]