Hello,

There is an explicit condition that can be removed l 1832 in 
tp/Texinfo/Convert/HTML.pm.  The code dates back to the initial
implementation, so my guess is that I tried to do the same as in
makeinfo --html at that time or it came from texi2html.

Maybe the idea was that an image in preformatted environments (@example,
@display...) did not make sense?  Another reason could have been
validity of the resulting HTML, but I checked that img in pre should be
ok.

If nobody objects, I could make the change this week end.

On Tue, Apr 27, 2021 at 03:19:58PM -0700, Per Bothner wrote:
> Supppage I have an image file images/paint-circ-1.png .
> 
> Consider the following k.texi program processed thus:
> 
>     makeinfo k.texi --html -o /tmp
> 
> \input texinfo
> @settitle k-test
> 
> @example
> $ echo foo
> @image{images/paint-circ-1}
> $ echo bar
> @end example
> 
> @image{images/paint-circ-1}
> @bye
> 
> The first @image just produces
>     [ images/paint-circ-1 ]
> while the second @image produces an actual <img> element.
> 
> It works when generating docbook or pdf, but not when generating html.
> -- 
>       --Per Bothner
> [email protected]   http://per.bothner.com/
> 

Reply via email to