bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @itemize @asis is not well supported


From: pertusus
Subject: Re: @itemize @asis is not well supported
Date: Thu, 7 Mar 2024 09:43:47 +0100

On Wed, Mar 06, 2024 at 07:28:52PM +0000, Gavin Smith wrote:
> It could just be the same error message as when used outwith @itemize:
> 
>     @asis foo
> 
> - which gives an error message like:
> 
>     test.texi:11: @asis expected braces

I also think that it is the best.

> Although it is very unlikely input, I notice with the current code, there
> is also a warning for the following:
> 
>     @itemize A @bullet
>     @item QQbar
>     Q foo man
>     @end itemize
> 
> giving the warning:
> 
>     test.texi:11: warning: command `@bullet' must not be followed by new line
> 
> I don't know how easy it would be to make the error messages consistent or
> if it is worth doing.

with

@itemize A @bullet and more
@end itemize

the same error message is obtained:
b.texi:2: @bullet expected braces

If @asis is followed by a new line and no brace you also get the 'must
not be followed by new line' message (+ expected brace message).
With:

some @asis
g

the error messages are:
b.texi:5: warning: command `@asis' must not be followed by new line
b.texi:6: @asis expected braces

I guess that it is because the @bullet is followed by an @item that
there is not an expected braces messages, with the following:

BB @bullet
N.

there are the two messages:
b.texi:8: warning: command `@bullet' must not be followed by new line
b.texi:9: @bullet expected braces



I think that the "must not be followed by new line" message is for cases
with braces but a new line following the command:

some @asis
{asis argument}.

BB @bullet
 {} N.


It may be possible to suppress the "must not be followed by new line" message
if there are no braces, but it would probably be a bit complicated to
implement.

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]