texinfo-devel
[Top][All Lists]
Advanced

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

Re: brackets for [imagetxt]


From: Patrice Dumas
Subject: Re: brackets for [imagetxt]
Date: Mon, 11 Feb 2013 00:28:54 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

On Sun, Feb 10, 2013 at 06:02:06PM +0000, Karl Berry wrote:
> Hi Patrice,
> 
> @center @image is much improved, but there is one small infelicity: it
> adds brackets around the image text.  I think C makeinfo may have done
> that, but clearly it's a mistake -- once again in Arnold's real-life
> case, they just get in the way.
> 
> I saw this code which appears to be what does it:
> 
>       if (!$self->{'formatters'}->[-1]->{'_top_formatter'}) {
>         $text_result = '['.$text.']';
>       } else {
>         $text_result = $text;
>       }
> 
> but the meaning of the if condition is obscure to me :), so leaving it
> for you ...

Simply, if the @image is not within a paragraph nor in a preformatted
(in @example or the like), it gets a [...].  It is more or less the case 
of an @image that is not inline.  I have no idea why.  I can easily 
remove those brackets.






reply via email to

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