emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: David Rogers <davidandrewrogers@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [new exporter] ASCII export, single newline
Date: Thu, 13 Dec 2012 13:53:10 +0100	[thread overview]
Message-ID: <87d2yep0zt.fsf@gmail.com> (raw)
In-Reply-To: <86mwxil88v.fsf@davidrogersmusic.ca> (David Rogers's message of "Wed, 12 Dec 2012 23:30:08 -0800")

David Rogers <davidandrewrogers@gmail.com> writes:

>> David Rogers <davidandrewrogers@gmail.com> writes:
>>
>>> My plain-text notes, however, often contain single newlines, which I'd
>>> like to retain. The new ASCII exporter converts them to spaces. If I put
>>> double newlines in the original, then the exporter doesn't convert
>>> anything, and leaves them double. I'm glad to format my originals in any
>>> way that works - my aim is only to get single newlines into the finished
>>> export. Is there an easy way to do that?
>>
>> IIUC, you want line breaks. I.e:
>>
>> Some line \\
>> Some other line.
>
> Exporting the double backslash adds an extra blank line, which I don't
> want.

You have to update Org. I fixed it yesterday (shortly before answering
your message)

>> If you want a line break on every line, use #+OPTIONS: \n:t
>
> This gave me exactly what I was looking for, thank you. My line breaks are
> preserved, but no new ones are added.
>
> (The old ASCII exporter preserved line breaks, without using any OPTIONS.)

The old ASCII exporter didn't format paragraphs properly.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2012-12-13 12:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12 18:26 [new exporter] ASCII export, single newline David Rogers
2012-12-12 22:09 ` Nicolas Goaziou
2012-12-12 23:21   ` David Rogers
2012-12-13  7:30   ` David Rogers
2012-12-13 12:53     ` Nicolas Goaziou [this message]
2012-12-13 20:17       ` David Rogers

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87d2yep0zt.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=davidandrewrogers@gmail.com \
    --cc=emacs-orgmode@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).