[latex3-commits] [git/LaTeX3-latex3-latex3] main: Correct over-ride code for template function keys (7d3f2b130)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jan 12 22:23:38 CET 2023


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

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

commit 7d3f2b130862411f5334a38c7a976527156ca4ae
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Jan 12 21:23:38 2023 +0000

    Correct over-ride code for template function keys


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

7d3f2b130862411f5334a38c7a976527156ca4ae
 l3packages/xtemplate/xtemplate.dtx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/l3packages/xtemplate/xtemplate.dtx b/l3packages/xtemplate/xtemplate.dtx
index 52f2d5959..448993f98 100644
--- a/l3packages/xtemplate/xtemplate.dtx
+++ b/l3packages/xtemplate/xtemplate.dtx
@@ -1616,9 +1616,12 @@
               {
                 .code:n =
                   {
-                    \exp_not:c
-                      { cs_ \str_if_eq:nnT {#1} { global } { g } set_eq:NN }
-                      \exp_not:N #3 ####1
+                    \cs_generate_from_arg_count:NNnn
+                      \exp_not:N #3
+                      \exp_not:c
+                        { cs_ \str_if_eq:nnT {#1} { global } { g } set:Npn }
+                      { \exp_not:o \l_@@_keytype_arg_tl }
+                      {####1}
                   }
               }
             \prop_put:Non \l_@@_vars_prop





More information about the latex3-commits mailing list.