[Top][All Lists]

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

[O] Fwd: Enforcing newlines in plain text export

From: Richard Lawrence
Subject: [O] Fwd: Enforcing newlines in plain text export
Date: Fri, 26 Sep 2014 08:52:27 -0700
User-agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu)

Hi Kaushal,

I am forwarding your message to the Org mode list; you only sent it to
me and Nicolas...

Kaushal <address@hidden> writes:

> I came across
> https://lists.gnu.org/archive/html/emacs-orgmode/2014-09/msg00466.html
> through this emacs SE page:
> http://emacs.stackexchange.com/questions/255/new-line-in-title-of-an-org-mode-exported-html-document
> The question I had asked on stackexchange was: How to export a mid-line
> newline consistently in all formats.

In paragraphs, all you need to do is end a line with "\\" to force a
line break.  This works for LaTeX, HTML, and plain text export, at least.

This doesn't work in other kinds of syntax, like headlines, but you may
not need it there.

> But I couldn't figure out how to convey a newline character when exporting
> to plain text (ascii).
> I tried,
> #+MACRO: NEWLINE @@latex:\\@@ @@html:<br>@@ @@ascii:\n@@
> But that simply puts out "\n" verbatim in the exported txt file.

I don't know the answer to this specific issue---you might need to
create a custom export filter---but hopefully you can just use "\\"
instead of a macro like this.

Do you need to enforce line breaks *outside of* a paragraph in plain
text export?  If so, what case are you worried about specifically?


OpenPGP Key ID: CF6FA646
Fingerprint: 9969 43E1 CF6F A646

(See http://www.ocf.berkeley.edu/~rwl/encryption.html for more information.)

reply via email to

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