From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new-exporter] Macro expansion does not allow for newlines '\n' Date: Fri, 07 Dec 2012 12:53:51 +0100 Message-ID: <87txryrsc0.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgwZK-0000gG-4I for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 06:58:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgwZJ-0007MO-35 for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 06:58:14 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:54640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgwZI-0007MH-Sr for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 06:58:13 -0500 Received: by mail-wg0-f51.google.com with SMTP id gg4so171550wgb.30 for ; Fri, 07 Dec 2012 03:58:12 -0800 (PST) In-Reply-To: (Jonathan Leech-Pepin's message of "Thu, 6 Dec 2012 15:15:15 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jonathan Leech-Pepin Cc: Org Mode Mailing List 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