[latex3-commits] [git/LaTeX3-latex3-latex3] main: update implementation documentation for added braces around key (bfd9bdbd1)

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/bfd9bdbd1f7b085f0a5934a183b19b6ece910205

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

commit bfd9bdbd1f7b085f0a5934a183b19b6ece910205
Author: Jonathan Spratte <jspratte at yahoo.de>
Date:   Sun Nov 14 10:59:37 2021 +0100

    update implementation documentation for added braces around key


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

bfd9bdbd1f7b085f0a5934a183b19b6ece910205
 l3kernel/l3prop.dtx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index 6987e9d18..ea2f2acf9 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -1074,11 +1074,11 @@
 % \begin{macro}[EXP]
 %   {\@@_to_keyval_exp_after:wN, \@@_to_keyval_aux:nn, \@@_to_keyval_aux:nnw}
 %   Each property name and value pair will be returned in the form
-%   \meta{name}\verb*|= |\marg{value}. As one of the main use cases for this
-%   macro is to pass the \meta{property list} on to a key--value parser, we have
-%   to make sure that the behaviour is as good as possible. Using a space before
-%   the opening brace we get the correct brace stripping behaviour for most of
-%   the key--value parsers available in \LaTeX.
+%   \verb*| |\marg{name}\verb*|= |\marg{value}. As one of the main use cases for
+%   this macro is to pass the \meta{property list} on to a key--value parser, we
+%   have to make sure that the behaviour is as good as possible. Using a space
+%   before the opening brace we get the correct brace stripping behaviour for
+%   most of the key--value parsers available in \LaTeX.
 %   If \cs{tex_expanded:D} is available this function makes use of it, so there
 %   are two different implementations here. They both start with
 %   \cs{__kernel_exp_not:w} to start the expansion context to expand in two
@@ -1090,10 +1090,10 @@
 %    \end{macrocode}
 %   The variant using \cs{tex_expanded:D} can just iterate over the
 %   \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. After the loop the leading comma is removed by \cs{use_none:n} and
-%   afterwards \cs{__kernel_exp_not:w} eventually finds the opening brace of its
-%   argument.
+%   has to be protected in \cs{__kernel_exp_not:w} as the property name is
+%   always a string. After the loop the leading comma is removed by
+%   \cs{use_none:n} and afterwards \cs{__kernel_exp_not:w} eventually finds the
+%   opening brace of its argument.
 %    \begin{macrocode}
     \cs_new:Npn \prop_to_keyval:N #1
       {
@@ -1112,7 +1112,7 @@
             }
       }
     \cs_new:Npn \@@_to_keyval_aux:nn #1#2
-      { , ~ {#1} =~ { \exp_not:n {#2} } }
+      { , ~ {#1} =~ { \__kernel_exp_not:w {#2} } }
   }
 %    \end{macrocode}
 %   The other variant will iterate over the \meta{property list} and has to





More information about the latex3-commits mailing list.