[latex3-commits] [git/LaTeX3-latex3-latex2e] gh648: Simplify less (a83d1fef)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Aug 16 05:59:45 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh648
Link       : https://github.com/latex3/latex2e/commit/a83d1fef9ed100d9ee2f89a7fbf67e73a5752b75

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

commit a83d1fef9ed100d9ee2f89a7fbf67e73a5752b75
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 16 00:59:45 2021 -0300

    Simplify less
    
    This test catches hooks like 'file/after' as well as 'file/<name>/after', so both subcomponents have to be tested


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

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

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 65188809..f228ca82 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -2987,8 +2987,8 @@
 %    \begin{macrocode}
                 \@@_make_usable:n {#5}
               }
-            \prop_if_in:NnT \c_@@_generics_reversed_prop {#3}
-              { \tl_gset:cn { g_@@_#5_reversed_tl } { - } }
+            \exp_args:NNx \prop_if_in:NnT \c_@@_generics_reversed_prop
+                { #3 \tl_if_empty:nT {#3} {#2} }
               { \tl_gset:cn { g_@@_#5_reversed_tl } { - } }
             \prg_return_true:
           }





More information about the latex3-commits mailing list.