[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Carriage return in macro
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Carriage return in macro |
Date: |
Mon, 26 Aug 2013 12:16:53 +0200 |
Hello,
Timothy Aldrich <address@hidden> writes:
> I have a simple macro defined to simplify the inclusion of a style for
> odt-export. It looks like this:
>
> #+MACRO: HEADING #+ODT:<text:p style-name="MyHeading">$1</text:p>
>
> 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