[latex3-commits] [git/LaTeX3-latex3-latex2e] master: added missing group needed to keep recent \protect change local (99656c6)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Mar 27 23:28:22 CEST 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/99656c6366d9b013b65fbf330d557e3571881db1

>---------------------------------------------------------------

commit 99656c6366d9b013b65fbf330d557e3571881db1
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Mar 27 23:28:22 2018 +0200

    added missing group needed to keep recent \protect change local


>---------------------------------------------------------------

99656c6366d9b013b65fbf330d557e3571881db1
 base/ltxdoc.dtx |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/base/ltxdoc.dtx b/base/ltxdoc.dtx
index 305b4e9..329353d 100644
--- a/base/ltxdoc.dtx
+++ b/base/ltxdoc.dtx
@@ -464,14 +464,17 @@
 %    \begin{macrocode}
 \gdef\codeline at wrindex#1{\if at filesw
 %    \end{macrocode}
-%    Set \cs{protect} to a suitable value in the index entries (we can't use |\set at display@protect|
-%    as that would result in different numer of spaces after a command depending on the number of 
-%    expansion happening prior to writing the index).
+%   Set \cs{protect} to a suitable value in the index entries (we
+%   can't use |\set at display@protect| as that would result in different
+%   numer of spaces after a command depending on the number of
+%   expansion happening prior to writing the index).
 %    \begin{macrocode}
+      \begingroup
         \let\protect\noexpand
         \immediate\write\@indexfile
             {\string\indexentry{#1}%
-            {\filesep\number\c at CodelineNo}}\fi}%
+            {\filesep\number\c at CodelineNo}}%
+      \endgroup\fi}
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list