[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `info` swallows vertical space and indentation after `@image`
From: |
Werner LEMBERG |
Subject: |
Re: `info` swallows vertical space and indentation after `@image` |
Date: |
Mon, 26 Apr 2021 05:40:35 +0000 (UTC) |
> Please try commit 7642b9b8c1 for the indentation in TeX where the
> first paragraph in a section after an @image shouldn't have any
> extra indentation on the first line.
Thanks, this works now. Attached you can find a better test image
that has (approximately) the same padding at the left and right side.
There is also a typo that prevents compilation:
```
--- a/info/nodes.c
+++ b/info/nodes.c
@@ -480,7 +480,7 @@ get_tags_of_indirect_tags_table (FILE_BUFFER *file_buffer,
free (file_buffer->subfiles);
file_buffer->subfiles = NULL;
free_file_buffer_tags (file_buffer);
- free (subfiles):
+ free (subfiles);
return;
}
```
Note, however, that there are still two problems with inline images.
Consider the following example.
```
\input texinfo.tex
@node Top
@node Foo
@chapter Foo
@image{image,,,image} test
bar
@image{image,,,image} test
baz
@bye
```
* If an image starts the first paragraph of a section, `makeinfo`
swallows the space after `[image]`, while `texinfo.tex` incorrectly
breaks the line after the image.
* If an image starts a paragraph in the middle of a section,
`makeinfo` adds two useless spaces and suppresses indentation, while
`texinfo.tex` suppresses the indendation and breaks the line after
the image.
In case this can't be fixed I suggest to update the documentation that
inline images starting a paragraph are not supported.
Werner
image.pdf
Description: Adobe PDF document