Links to discussion archive: https://lists.gnu.org/archive/html/help-texinfo/2022-11/msg00060.html https://lists.gnu.org/archive/html/help-texinfo/2022-11/msg00061.html
On Sun, Nov 27, 2022 at 02:39:25PM +0100, Patrice Dumas wrote: > > What is more awkward is when there is no blank line before the index > > command: > > > > @table @asis > > @item aaa > > text > > @cindex XXX > > @item bbb > > text > > @end table > > > > producing > > > > <dl class="table"> > > <dt>aaa</dt> > > <dd><p>text > > <a class="index-entry-id" id="index-XXX"></a> > > </p></dd> > > <dt>bbb</dt> > > <dd><p>text > > </p></dd> > > </dl> > > > > There are several such usages in the Texinfo manual... > For such cases, it is not clear to me what the output should be > actually, the index entry could belong to the previous or next @item. > Since the result is ok, I think that we can leave it as it is. I think index commands should close any open paragraphs, as there is no other way of getting the right output other than having a blank line. If it is really desired for an index command to refer to the middle of a paragraph, we could introduce a brace command like @anchor for this purpose.