[latex3-commits] [git/LaTeX3-latex3-latex3] main: only the value needs exp_not:n (fe582e255)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jan 10 14:45:55 CET 2022


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

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

commit fe582e25563319d7210ce7510a7e9ffa4044e72d
Author: Jonathan Spratte <jspratte at yahoo.de>
Date:   Sun Nov 15 21:43:31 2020 +0100

    only the value needs exp_not:n


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

fe582e25563319d7210ce7510a7e9ffa4044e72d
 l3kernel/l3prop.dtx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index 392aac58e..cffe16ab2 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -1092,7 +1092,9 @@
   {
 %    \end{macrocode}
 %   The variant using \cs{tex_expanded:D} can just iterate over the
-%   \meta{property list} and remove the leading comma afterwards.
+%   \meta{property list} and remove the leading comma afterwards. Only the value
+%   has to be protected in \cs{exp_not:n} as the property name is always a
+%   string.
 %    \begin{macrocode}
     \cs_new:Npn \prop_to_keyval:N #1
       {
@@ -1110,7 +1112,7 @@
     \cs_new:Npn \@@_to_keyval_aux:w ,
       { \exp_after:wN { \if_false: } \fi: }
     \cs_new:Npn \@@_to_keyval_aux:nn #1#2
-      { , \exp_not:n { #1 =~ {#2} } }
+      { , #1 =~ { \exp_not:n {#2} } }
   }
 %    \end{macrocode}
 %   The other variant will iterate over the \meta{property list} and has to





More information about the latex3-commits mailing list.