[latex3-commits] [latex3/latex3] main: faster align_safe_end (070c495a5)

github at latex-project.org github at latex-project.org
Wed Jan 10 14:29:02 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/070c495a550555725a0a03679111772f9e978d6b

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

commit 070c495a550555725a0a03679111772f9e978d6b
Author: Jonathan Spratte <jspratte at yahoo.de>
Date:   Wed Jan 3 22:06:36 2024 +0100

    faster align_safe_end


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

070c495a550555725a0a03679111772f9e978d6b
 l3kernel/l3prg.dtx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/l3kernel/l3prg.dtx b/l3kernel/l3prg.dtx
index 866537f90..86c5bd813 100644
--- a/l3kernel/l3prg.dtx
+++ b/l3kernel/l3prg.dtx
@@ -1789,9 +1789,10 @@
 \tex_catcode:D `\^^@ = 2 \exp_stop_f:
 \cs_new:Npn \group_align_safe_begin:
   { \exp:w \if_false: { \fi: `^^@ \exp_stop_f: }
-\group_end:
+\tex_catcode:D `\^^@ = 1 \exp_stop_f:
 \cs_new:Npn \group_align_safe_end:
-  { \if_int_compare:w `{ = \c_zero_int } \fi: }
+  { \exp:w `^^@ \if_false: } \fi: \exp_stop_f: }
+\group_end:
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.