[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] New exporter macro question
From: |
Carsten Dominik |
Subject: |
Re: [O] New exporter macro question |
Date: |
Mon, 11 Feb 2013 14:45:24 +0100 |
On 11 feb. 2013, at 13:48, Carsten Dominik <address@hidden> wrote:
>
> Hi,
>
> I am porting my websites to the new exporter, finally. Much is very smooth.
> I do have a problem with macros:
>
>
> * Macro definition
>
>
> #+MACRO: thumbright #+ATTR_HTML: style="float:right;width:$1;margin:0px
> 20px 0px 20px;" \n [[./Content/$2/thumb.jpg]]
>
>
>
> * Macro call
>
> {{{thumbright(300px,Wiskunde)}}}
>
>
>
>
> * This used to expand to
>
> <img src="./Content/Wiskunde/thumb.jpg"
> style="float:right;width:300px;margin:0px 20px 0px 20px;"
> alt="./Content/Wiskunde/thumb.jpg" />
>
>
> * But now it expands to nothing
> I am sure I am missing something basic. Thanks!
OK, I see, this seems to be because the "\n" is no longer interpreted as a
newline character upon macro expansion, so the entire text ends up in the
ATTR_HTML line and is treated as a comment.
Is there a way to get what I meant?
Thanks
- Carsten