[latex3-commits] [latex3/latex3] main: use .default:n value for unknown key (e9d328d37)

github at latex-project.org github at latex-project.org
Wed Jan 3 14:52:42 CET 2024


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

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

commit e9d328d37257943eb128794fdb0ac1bb1cb9bbdd
Author: Jonathan Spratte <jspratte at yahoo.de>
Date:   Tue Jan 2 17:58:51 2024 +0100

    use .default:n value for unknown key


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

e9d328d37257943eb128794fdb0ac1bb1cb9bbdd
 l3kernel/l3keys.dtx | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index 032c3adde..9f5e644dd 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -3248,7 +3248,19 @@
       {
         \cs_if_exist:cTF
           { \c_@@_code_root_str \l_@@_module_str / unknown }
-          { \@@_execute:no { \l_@@_module_str / unknown } \l_keys_value_tl }
+          {
+            \bool_if:NT \l_@@_no_value_bool
+              {
+                \cs_if_exist:cT
+                  { \c_@@_default_root_str \l_@@_module_str / unknown }
+                  {
+                    \tl_set_eq:Nc
+                      \l_keys_value_tl
+                      { \c_@@_default_root_str \l_@@_module_str / unknown }
+                  }
+              }
+            \@@_execute:no { \l_@@_module_str / unknown } \l_keys_value_tl
+          }
           {
             \msg_error:nnee { keys } { unknown }
               \l_keys_path_str \l_@@_module_str





More information about the latex3-commits mailing list.