[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Status of macro expansion
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Status of macro expansion |
Date: |
Thu, 06 Aug 2015 18:03:43 +0200 |
Hello,
Fabrice Popineau <address@hidden> writes:
> I was looking at what text can serve as macro arguments and it seems there
> are a couple of restrictions. Namely, if I export the following to html:
>
> #+MACRO: leftcolumn @@html:<div class="left">$1</div>@@
> #+MACRO: rightcolumn @@html:<div class="right">$1</div>@@
>
> * Title
>
> ** Section
>
> {{{leftcolumn(
> [[http://www.google.com/]]
> )}}}
>
> {{{rightcolumn(
> Line 1
>
> Line 2
> )}}}
>
> Neither one of the macros work.
> Is it expected ? (I assume yes)
AFAICT the first macro is correctly expanded. What makes you think it
doesn't work?
However, macros, being objects, cannot cross paragraphs. The second
example is really 2 paragraphs, not a macro containing two lines.
Regards,
--
Nicolas Goaziou