On Sun, Nov 06, 2022 at 06:38:24AM +0000, Werner LEMBERG wrote: > If this is not possible, please make `texinfo.tex` suppress index > entries that consist of whitespace only – perhaps together with a > warning (or even an error). I also suggest to add some words to the > manual about this case.
It's possible to add a warning message, with: diff --git a/doc/texinfo.tex b/doc/texinfo.tex index 596cab3289..a5e8637029 100644 --- a/doc/texinfo.tex +++ b/doc/texinfo.tex @@ -5270,7 +5270,10 @@ $$% \xdef\trimmed{\segment}% \xdef\trimmed{\expandafter\eatspaces\expandafter{\trimmed}}% \xdef\indexsortkey{\trimmed}% - \ifx\indexsortkey\empty\xdef\indexsortkey{ }\fi + \ifx\indexsortkey\empty + \message{Empty index sort key near line \the\inputlineno}% + \xdef\indexsortkey{ }% + \fi }\fi % % Append to \fullindexsortkey. Do you think this would help fix this kind of problem?