First, everybody, just *disregard everything I've said* about nested
macros working and needing to be documented.

Testing again, it seems to only work when the outer macro has an eval
definition, and only in some cases at that. Arghh. Sorry for the noise.

Perry Smith <[email protected]> writes:
> The problem is if the include doesn’t happen.  e.g.
>
> {{{include-if(blahh, {{{bold(Tom\\\, Dick\\\, and Harry)}}})}}}
>
> (note the extra h in blahh) results in ")}}}” being in the export.

Oops. Yes, I see that. I still haven't dug into the code, but I'm
guessing that the inner macro only gets evaluated as a macro if it's
actually exported, which defeats the purpose of the conditional macro,
and that if it doesn't get evaluated, it causes trouble.

> As far as the triple back slashes, as you said, it is very confusing
> to read. Splitting it into two pieces, to me, is more readable and
> safer.

Fair.


Regards,
Christian

Reply via email to