From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [new-exporter] Macro expansion does not allow for newlines '\n'
Date: Fri, 07 Dec 2012 12:53:51 +0100 [thread overview]
Message-ID: <87txryrsc0.fsf@gmail.com> (raw)
In-Reply-To: <CAEWDx5cgmUvopnh=CVP38WNb6Nwu1_QAFByRa9nLBMzxyjYk-Q@mail.gmail.com> (Jonathan Leech-Pepin's message of "Thu, 6 Dec 2012 15:15:15 -0500")
Hello,
Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com> writes:
> The new exporter does not properly parse \n characters in macro definitions.
>
> In the old exporter the following:
>
> #+MACRO: test hello\ngoodbye
>
> {{{test}}}
>
> exports to ASCII as:
>
> hello
> goodbye
>
> In the new exporter (e-ascii) it exports as:
>
> hello\ngoodbye
>
> I've also reproduced this using e-pdf and e-texinfo.
Indeed. There is no support anymore for that feature. Macros are
a simple tool for simple tasks. Anything more complicated would overlap
with Babel functionalities. There's no point in providing that.
As a side note, the old exporter is wrong anyway, since only line breaks
should ensure to keep a real line break in the output.
Also, a macro can be replaced with a more complicated Babel call, if
needed.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2012-12-07 11:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 20:15 [new-exporter] Macro expansion does not allow for newlines '\n' Jonathan Leech-Pepin
2012-12-07 11:53 ` Nicolas Goaziou [this message]
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=87txryrsc0.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jonathan.leechpepin@gmail.com \
/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).