On Sun, Jul 12, 2026 at 07:34:24PM +0000, ThomB wrote: > There's another bug that relates to this. > > Using texi2any_internals.info again as the example, the proper index node is > fine and works as expected but in a virtual index this same kind of entry is > parsed incorrectly: > > info texi2any_internals -n Index > > vs. > > info texi2any_internals --index-search xml_accent --all > > It happens because when the virtual index is being created, the DEL characters > have already been stripped from the node name, which is printed as-is, so > there > isn't a quote character there for `scan_reference_label()` to stop scanning > at. > > This is at info/indices.c:903. > > Two diffs again--one makes `format_reference()` at that location enclose node > names that have at least one colon in them in DEL characters. In order to use > INFO_QUOTE_STR I moved it and INFO_QUOTE (seemed sensible to keep them > together) from > info/scan.c to info/scan.h. > > The other diff updates the test I wrote previously to work with the now quoted > index entry.
Thanks, I've applied these with a minor change to the test.
