bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with 'txiindexbackslashignore'


From: Gavin Smith
Subject: Re: problem with 'txiindexbackslashignore'
Date: Sun, 6 Nov 2022 19:54:28 +0000

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]