[latex3-commits] [git/LaTeX3-latex3-latex2e] keyval-detect: Maintain an un-trimmed version of the argument (19f0207f)
PhelypeOleinik
phelype.oleinik at latex-project.org
Mon Aug 29 12:14:43 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : keyval-detect
Link : https://github.com/latex3/latex2e/commit/19f0207fbe3f3c136741b4efb87b86d11d19e1bf
>---------------------------------------------------------------
commit 19f0207fbe3f3c136741b4efb87b86d11d19e1bf
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Mon Aug 29 07:14:43 2022 -0300
Maintain an un-trimmed version of the argument
>---------------------------------------------------------------
19f0207fbe3f3c136741b4efb87b86d11d19e1bf
base/ltcmd.dtx | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index a823e8dd..07f7d114 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -3962,7 +3962,7 @@
%
% \begin{macro}{\@@_arg_to_keyvalue:nn}
% \changes{v1.1a}{2022/08/10}{New internal arg-to-keyval processor}
-% \begin{macro}{\@@_arg_to_keyvalue_braces:nn}
+% \begin{macro}{\@@_arg_to_keyvalue_braces:nnn}
% \begin{macro}{\@@_arg_to_keyvalue_auxi:nnn}
% \begin{macro}{\@@_arg_to_keyvalue_auxii:nnNw}
% \begin{macro}{\@@_arg_to_keyvalue_auxiii:nnn}
@@ -3983,8 +3983,11 @@
% series of steps rather than a delimited argument.
% \begin{macrocode}
\cs_new_protected:Npn \@@_arg_to_keyvalue:nn #1#2
- { \tl_trim_spaces_apply:nN {#2} \@@_arg_to_keyvalue_braces:nn {#1} }
-\cs_new_protected:Npn \@@_arg_to_keyvalue_braces:nn #1#2
+ {
+ \tl_trim_spaces_apply:nN {#2} \@@_arg_to_keyvalue_braces:nnn
+ {#1} {#2}
+ }
+\cs_new_protected:Npn \@@_arg_to_keyvalue_braces:nnn #1#2#3
{
\tl_if_head_is_group:nT {#1}
{
@@ -3996,10 +3999,7 @@
}
}
\use:n
- {
- \tl_trim_spaces_apply:nN {#1} \@@_arg_to_keyvalue_auxi:nnn
- {#2} {#1}
- }
+ { \@@_arg_to_keyvalue_auxi:nnn {#1} {#2} {#3} }
}
\cs_new_protected:Npn \@@_arg_to_keyvalue_auxi:nnn #1#2#3
{
@@ -4007,8 +4007,7 @@
{ \@@_arg_to_keyvalue_auxii:nnNw {#2} {#3} #1 \q_@@_stop }
{ \@@_arg_to_keyvalue_auxv:nn {#2} {#3} }
}
-\cs_new_protected:Npn \@@_arg_to_keyvalue_auxii:nnNw
- #1#2#3#4 \q_@@_stop
+\cs_new_protected:Npn \@@_arg_to_keyvalue_auxii:nnNw #1#2#3#4 \q_@@_stop
{
\str_if_eq:nnTF {#3} { = }
{
@@ -4023,8 +4022,7 @@
{ \@@_arg_to_keyvalue_auxiv:nnNw {#2} {#3} #1 \q_@@_stop }
{ \@@_arg_to_keyvalue_auxv:nn {#2} {#3} }
}
-\cs_new_protected:Npn \@@_arg_to_keyvalue_auxiv:nnNw
- #1#2#3#4 \q_@@_stop
+\cs_new_protected:Npn \@@_arg_to_keyvalue_auxiv:nnNw #1#2#3#4 \q_@@_stop
{
\str_if_eq:nnTF {#3} { , }
{ \tl_set:Nn \ProcessedArgument {#4} }
More information about the latex3-commits
mailing list.