* [new-exporter] Macro expansion does not allow for newlines '\n'
@ 2012-12-06 20:15 Jonathan Leech-Pepin
2012-12-07 11:53 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Leech-Pepin @ 2012-12-06 20:15 UTC (permalink / raw)
To: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
Hello all,
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.
Regards,
--
Jon
[-- Attachment #2: Type: text/html, Size: 419 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [new-exporter] Macro expansion does not allow for newlines '\n'
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
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2012-12-07 11:53 UTC (permalink / raw)
To: Jonathan Leech-Pepin; +Cc: Org Mode Mailing List
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-07 11:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.