On Tue, Oct 29, 2024 at 03:21:48PM +0000, Werner LEMBERG wrote: > > Folks, > > > why are `@anchor` and friends discouraged on an `@item` line? AFAICS, > the reason for this restriction is not documented in the manual, and > it seems to work just fine...
Do you have a specific output showing it discouraged? And if yes, with which version of GNU Texinfo? It could be something we mistakenly did in a previous version but reverted for the upcoming release. In any case, I think that an @anchor on a @table @item line is not a problem, but for @vtable and @ftable the @item is also used as an index entry. An @anchor in index entry may not be the best as it could appear both where the @item is and in the @printindex formatting of the index entry. This happens in the HTML output for instance. Also the HTML output in printindex will contain nested <a>, which is invalid HTML, though it is not a practical issue on browsers. -- Pat