[latex3-commits] [git/LaTeX3-latex3-latex2e] hook-args: \@@~#2 is \long, so not equal to \c_empty_tl (a6e8c096)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Dec 12 01:57:46 CET 2022


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

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

commit a6e8c0965becb2a512f4c9767fcaa27d29dc9314
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Dec 11 21:57:46 2022 -0300

    \@@~#2 is \long, so not equal to \c_empty_tl


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

a6e8c0965becb2a512f4c9767fcaa27d29dc9314
 base/lthooks.dtx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index ce8a55bd..6e3d4c42 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4742,7 +4742,8 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_gput_next_do:Nnn #1 #2
   {
-    \tl_if_empty:cT { @@~#2 }
+    \exp_args:Ne \str_if_empty:nT
+        { \exp_args:Nc \cs_replacement_spec:N { @@~#2 } }
       { \@@_update_hook_code:n {#2} }
     \tl_if_empty:NT #1
       { \@@_tl_gset:Nn #1 { \@@_clear_next:n {#2} } }





More information about the latex3-commits mailing list.