On Wed, Jul 08, 2026 at 04:05:59PM +0200, Patrice Dumas wrote:
> On Wed, Jul 08, 2026 at 10:37:17AM +0000, Werner LEMBERG wrote:
> >
> > The info file created with `makeinfo foo.texi` contains the following.
> >
> > ```
> > some long text for testing [replacement text] some long text for testing
> > [replacement text] some long text
> > for testing
> > ```
> >
> > Note how the first line is far too long; it seems that the length of
> > the replacement text in `@image` is not taken into account while
> > computing the line length.
>
> Indeed, this is something that is still undecided. I have put this in
> the tta/TODO file:
>
> Punctuation and spaces before @image do not lead to a doubling of space.
> In fact @image is completly formatted outside of usual formatting containers.
> Not sure what should be the right way?
> test in info_test/image_and_punctuation
>
> To me the first question would be whether it is a good idea to reflow
> an @image replacement text. If there is a txt file content included,
> it could be better not to reflow it, considering that the txt file was
> already rightly formatted.
Another issue that if the text file has multiple lines, and appears inside
a paragraph, then the first line of the file will not appear directly above
the second line:
---------------------------------------------------------
$ cat image.texi
\input texinfo
@node top
@top
aaa @image{image, 100, 50, a picture of a tiger} bbb.
@bye
$ cat image.txt
0 0
.
---
\_/
$ texi2any image.texi
$ info ./image | cat
File: image.info, Node: Top, Up: (dir)
aaa 0 0
.
---
\_/ bbb.
---------------------------------------------------------
This may not ever have been a real problem but goes to show that multiline
replacement text is probably not going to look good if used inline in a
paragraph.