[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wrong macro expansion for some commands
From: |
Eli Zaretskii |
Subject: |
Re: wrong macro expansion for some commands |
Date: |
Sat, 17 Jul 2004 13:17:45 +0200 |
> Date: Fri, 16 Jul 2004 11:33:55 +0200 (CEST)
> From: Werner LEMBERG <address@hidden>
>
> Consider this example:
>
> @defcodeindex ma
>
> @macro xxx
> @maindex xxx
> @end macro
>
> foo
> @xxx
> bar
>
> After a call to `makeinfo -E', it expands to
>
> @defcodeindex ma
>
> @macro xxx
> @maindex xxx
> @end macro
>
> foo
> @maindex xxx
> <---
> bar
>
> The marked empty line is wrong and shouldn't be emitted at all
IIRC, this could be hard to do in the macro-expanding code, since it
doesn't know anything about the surrounding text, and some situations
need the newline.
Can I suggest using something like
foo
@xxx bar
instead? This should work regardless of whether the macro emits the
newline.