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

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/a9dac831ff0f52cd14bde22447fa8d81884b34b5

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

commit a9dac831ff0f52cd14bde22447fa8d81884b34b5
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


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

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

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index c7bd94b8..2c5769e1 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.