From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Carriage return in macro Date: Mon, 26 Aug 2013 12:16:53 +0200 Message-ID: <87fvtwkb8q.fsf@gmail.com> References: <87txig8982.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDtqq-0000Wm-4q for emacs-orgmode@gnu.org; Mon, 26 Aug 2013 06:16:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDtqh-000356-NG for emacs-orgmode@gnu.org; Mon, 26 Aug 2013 06:16:48 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:47122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDtqh-00034p-GJ for emacs-orgmode@gnu.org; Mon, 26 Aug 2013 06:16:39 -0400 Received: by mail-wi0-f170.google.com with SMTP id h11so354754wiv.1 for ; Mon, 26 Aug 2013 03:16:38 -0700 (PDT) In-Reply-To: <87txig8982.fsf@gmail.com> (Timothy Aldrich's message of "Fri, 23 Aug 2013 16:04:29 -0400") 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: Timothy Aldrich Cc: emacs-orgmode@gnu.org Hello, Timothy Aldrich writes: > I have a simple macro defined to simplify the inclusion of a style for > odt-export. It looks like this: > > #+MACRO: HEADING #+ODT:$1 > > and then to add this style to any text within the document, I simply call it > like this: > > {{{HEADING( A really great headline )}}} > > This is all fine... Until I want to apply the same process to a multi-line > section. I end up with several macro calls , one per line. > > {{{BODY(line one of body)}}} {{{BODY(line two of body)}}} {{{BODY(line three > of body)}}} {{{BODY(line four of body)}}} > > Is there any way to have carriage returns within the text of the > macro ? No, there isn't. Macros target small substitutions. > I have already tried using the #+BEGIN_ODT...#+END_ODT construct, but that > *really* messes with the format of the text within it. What do you mean? I don't know odt exporter very well, but contents of the block should be included as-is. Regards, -- Nicolas Goaziou