[latex3-commits] [git/LaTeX3-latex3-latex2e] keyval-detect: Use the correct argument (11cc8bd3)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Aug 29 21:28:48 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : keyval-detect
Link       : https://github.com/latex3/latex2e/commit/11cc8bd3706d8241065386ae10531f9d75437025

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

commit 11cc8bd3706d8241065386ae10531f9d75437025
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 29 16:28:48 2022 -0300

    Use the correct argument


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

11cc8bd3706d8241065386ae10531f9d75437025
 base/ltcmd.dtx                    | 10 +++++-----
 base/testfiles-ltcmd/ltcmd008.lvt |  0
 base/testfiles-ltcmd/ltcmd008.tlg |  8 ++++----
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 07f7d114..d4944fca 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -4064,15 +4064,15 @@
   {
     \quark_if_recursion_tail_stop_do:Nn #3
       { \tl_set:Nn \ProcessedArgument { #1 = {#2} } }
-    \str_if_eq:nnTF {#1} { = }
+    \str_if_eq:nnTF {#3} { = }
       {
         \use_i_delimit_by_q_recursion_stop:nw
           { \tl_set:Nn \ProcessedArgument {#2} }
       }
       {
         \bool_lazy_or:nnTF
-          { \str_if_eq_p:nn {#1} { $ } }
-          { \str_if_eq_p:nn {#1} { \( } }
+            { \str_if_eq_p:nn {#3} { $ } }
+            { \str_if_eq_p:nn {#3} { \( } }
           { \@@_arg_to_keyvalue_math:nnw {#1} {#2} }
           { \@@_arg_to_keyvalue_loop:nnw {#1} {#2} }
       }
@@ -4094,8 +4094,8 @@
     \quark_if_recursion_tail_stop_do:Nn #3
       { \tl_set:Nn \ProcessedArgument { #1 = {#2} } }
     \bool_lazy_or:nnTF
-      { \str_if_eq_p:nn {#1} { $ } }
-      { \str_if_eq_p:nn {#1} { \) } }
+        { \str_if_eq_p:nn {#3} { $ } }
+        { \str_if_eq_p:nn {#3} { \) } }
       { \@@_arg_to_keyvalue_loop:nnw {#1} {#2} }
       { \@@_arg_to_keyvalue_math:nnw {#1} {#2} }
   }
diff --git a/base/testfiles-ltcmd/ltcmd008.tlg b/base/testfiles-ltcmd/ltcmd008.tlg
index 9d78036a..1d154a02 100644
--- a/base/testfiles-ltcmd/ltcmd008.tlg
+++ b/base/testfiles-ltcmd/ltcmd008.tlg
@@ -11,19 +11,19 @@ TEST 1: Basic definitions using ={...}
 TEST 2: Collecting keyvals
 ============================================================
 (TOC-entry={bong})(baz)
-(TOC-entry={bong=bang})(baz)
+(bong=bang)(baz)
 (bong)(baz)
-(TOC-entry={bong=bang})(baz)
+(bong=bang)(baz)
 (TOC-entry={$y=mx+c$})(baz)
 (TOC-entry={\(y=mx+c\)})(baz)
-(TOC-entry={math=$y\mathbin {=}mx+c$})(baz)
+(math=$y\mathbin {=}mx+c$)(baz)
 ============================================================
 ============================================================
 TEST 3: Mixed argument types using ={...}
 ============================================================
 (TOC-entry={bar})
 (TOC-entry={baz})
-(TOC-entry={bong=bing})
+(bong=bing)
 ============================================================
 ============================================================
 TEST 4: Awkward catcodes





More information about the latex3-commits mailing list.