all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Stig Brautaset <stig@brautaset.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to suppress extra newline between paragraphs in export?
Date: Mon, 18 Apr 2016 18:46:21 +0200	[thread overview]
Message-ID: <87ega2eug2.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2lh4aange.fsf@margil.lan> (Stig Brautaset's message of "Mon, 18 Apr 2016 17:30:57 +0100")

Hello,

Stig Brautaset <stig@brautaset.org> 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	other threads:[~2016-04-18 16:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-18 16:30 how to suppress extra newline between paragraphs in export? Stig Brautaset
2016-04-18 16:46 ` Nicolas Goaziou [this message]
2016-04-19 22:23   ` Stig Brautaset

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ega2eug2.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=stig@brautaset.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.