[latex3-commits] [git/LaTeX3-latex3-latex2e] keyval-detect: Use \tl_trim_spaces_apply:nN as suggested (191f66c8)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Aug 29 11:32:13 CEST 2022


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

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

commit 191f66c88e8966d4a63b9d4ac9706ed0ca153a61
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Aug 29 11:32:13 2022 +0200

    Use \tl_trim_spaces_apply:nN as suggested


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

191f66c88e8966d4a63b9d4ac9706ed0ca153a61
 base/ltcmd.dtx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 4c57c853..1776d11a 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -3988,8 +3988,8 @@
         { { \exp_not:o { \use:n #2 } } }
       { \tl_set:Nn \ProcessedArgument { #1 = #2 } }
       {
-        \exp_args:Ne \@@_arg_to_keyvalue_auxi:nnn
-          { \tl_trim_spaces:n {#2} } {#1} {#2}
+        \tl_trim_spaces_apply:nN {#2} \@@_arg_to_keyvalue_auxi:nnn
+          {#1} {#2}
       }
   }
 \cs_new_protected:Npn \@@_arg_to_keyvalue_auxi:nnn #1#2#3
@@ -4003,8 +4003,8 @@
   {
     \str_if_eq:nnTF {#3} { = }
       {
-        \exp_args:Ne \@@_arg_to_keyvalue_auxiii:nnn
-          { \tl_trim_spaces:n {#4} } {#1} {#2}
+        \tl_trim_spaces_apply:nN {#4} \@@_arg_to_keyvalue_auxiii:nnn
+          {#1} {#2}
       }
       { \@@_arg_to_keyvalue_auxv:nn {#1} {#2} }
   }





More information about the latex3-commits mailing list.