[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Use \begingroup .. \endgroup instead of brace group in case this ever is executed in math (2241d6c)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Mar 8 21:49:52 CET 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/2241d6c66c95327809d3432d84310e51764b7492

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

commit 2241d6c66c95327809d3432d84310e51764b7492
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Mar 8 21:49:52 2018 +0100

    Use \begingroup .. \endgroup instead of brace group in case this ever is executed in math


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

2241d6c66c95327809d3432d84310e51764b7492
 base/ltcounts.dtx |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/base/ltcounts.dtx b/base/ltcounts.dtx
index bf370bf..df42631 100644
--- a/base/ltcounts.dtx
+++ b/base/ltcounts.dtx
@@ -337,14 +337,16 @@
 %    \begin{macrocode}
 \def\@removefromreset#1#2{%
   \@ifundefined{c@#2}\relax
-  {{\expandafter\let\csname c@#1\endcsname\@removefromreset
-    \def\@elt##1{%
-      \expandafter\ifx\csname c@##1\endcsname\@removefromreset
-      \else
-        \noexpand\@elt{##1}%
-      \fi}%
-    \expandafter\xdef\csname cl@#2\endcsname
-     {\csname cl@#2\endcsname}}}}
+  {\begingroup
+     \expandafter\let\csname c@#1\endcsname\@removefromreset
+     \def\@elt##1{%
+       \expandafter\ifx\csname c@##1\endcsname\@removefromreset
+       \else
+         \noexpand\@elt{##1}%
+       \fi}%
+     \expandafter\xdef\csname cl@#2\endcsname
+      {\csname cl@#2\endcsname}%
+    \endgroup}}
 %    \end{macrocode}
 %  \end{macro}
 





More information about the latex3-commits mailing list