[latex3-commits] [git/LaTeX3-latex3-latex3] main: Fix space stripping from key types (233f94797)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jun 6 19:42:49 CEST 2022


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

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

commit 233f94797498722029cb2fe24b58754668ca3de9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Jun 6 18:42:49 2022 +0100

    Fix space stripping from key types


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

233f94797498722029cb2fe24b58754668ca3de9
 l3packages/CHANGELOG.md            | 3 +++
 l3packages/xtemplate/xtemplate.dtx | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/l3packages/CHANGELOG.md b/l3packages/CHANGELOG.md
index 0205576bb..7480b4097 100644
--- a/l3packages/CHANGELOG.md
+++ b/l3packages/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+- Space stripping from `xtemplate` key types
+
 ## [2022-05-30]
 
 ## Added
diff --git a/l3packages/xtemplate/xtemplate.dtx b/l3packages/xtemplate/xtemplate.dtx
index 6dd4e2edf..9894be538 100644
--- a/l3packages/xtemplate/xtemplate.dtx
+++ b/l3packages/xtemplate/xtemplate.dtx
@@ -1390,7 +1390,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_split_keytype_arg:n #1
   {
-    \tl_set:Nn \l_@@_keytype_tl {#1}
+    \tl_set:Nx \l_@@_keytype_tl { \tl_trim_spaces:n {#1} }
     \tl_clear:N \l_@@_keytype_arg_tl
     \cs_set_protected:Npn \@@_split_keytype_arg_aux:n ##1
       {





More information about the latex3-commits mailing list.