[latex3-commits] [git/LaTeX3-latex3-latex3] main: Simplify slightly an error branch in keyval_parse (see #912) (dc34ff146)

Bruno Le Floch blflatex at gmail.com
Wed May 12 23:13:24 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/dc34ff1461cb53096c14ad31f59a753577e9074f

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

commit dc34ff1461cb53096c14ad31f59a753577e9074f
Author: Bruno Le Floch <blflatex at gmail.com>
Date:   Wed May 12 23:13:24 2021 +0200

    Simplify slightly an error branch in keyval_parse (see #912)


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

dc34ff1461cb53096c14ad31f59a753577e9074f
 l3kernel/l3keys.dtx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index c3c8d7567..b363eb288 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -1343,10 +1343,11 @@
 %    \begin{macrocode}
 \cs_new:Npn \@@_blank_true:w \s_@@_mark \s_@@_stop \@@_trim:nN #1 \@@_key:nn
   { \@@_loop_other:nnw }
-\cs_if_exist:NTF \tex_expanded:D
-  { \cs_new:Npn \@@_blank_key_error:w #1 \exp_not:n #2 }
-  { \cs_new:Npn \@@_blank_key_error:w #1 \group_align_safe_begin: }
-      { \__kernel_msg_expandable_error:nn { keyval } { blank-key-name } }
+\cs_new:Npn \@@_blank_key_error:w #1 \@@_loop_other:nnw
+  {
+    \__kernel_msg_expandable_error:nn { keyval } { blank-key-name }
+    \@@_loop_other:nnw
+  }
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.