[latex3-commits] [git/LaTeX3-latex3-latex2e] hook-args: Correctly clear next code after usage (b7ab9e4b)

PhelypeOleinik phelype.oleinik at latex-project.org
Sat Mar 11 03:06:36 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : hook-args
Link       : https://github.com/latex3/latex2e/commit/b7ab9e4b14c1b97e83456df7c7fdca43d217d767

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

commit b7ab9e4b14c1b97e83456df7c7fdca43d217d767
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed Mar 8 00:52:09 2023 -0300

    Correctly clear next code after usage


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

b7ab9e4b14c1b97e83456df7c7fdca43d217d767
 base/lthooks.dtx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index b4b4452d..7d42e847 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -5478,8 +5478,8 @@
   {
     \@@_cs_if_empty:cT { @@~#2 }
       { \@@_update_hook_code:n {#2} }
-    \tl_if_empty:NT #1
-      { \@@_tl_gset:Nn #1 { \@@_clear_next:n {#2} } }
+    \@@_cs_if_empty:cT { @@_next~#2 }
+      { \@@_next_gset:nn {#2} { \@@_clear_next:n {#2} } }
     \@@_cs_gput_right:nnn { _next } {#2}
   }
 %    \end{macrocode}





More information about the latex3-commits mailing list.