Re: [O] [new-exporter] Macro expansion does not allow for newlines '\n'

2012-12-07 Thread Nicolas Goaziou
Hello,

Jonathan Leech-Pepin  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



[O] [new-exporter] Macro expansion does not allow for newlines '\n'

2012-12-06 Thread Jonathan Leech-Pepin
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