[latex3-commits] [git/LaTeX3-latex3-latex3] master: don't use exp_not:o in tl_trim_spaces:n (6225c8366)
Bruno Le Floch
blflatex at gmail.com
Tue Oct 27 09:11:58 CET 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/6225c8366d6d3429408ceda16ab5145d369c8a01
>---------------------------------------------------------------
commit 6225c8366d6d3429408ceda16ab5145d369c8a01
Author: Jonathan Spratte <jspratte at yahoo.de>
Date: Sun Sep 20 13:36:09 2020 +0200
don't use exp_not:o in tl_trim_spaces:n
>---------------------------------------------------------------
6225c8366d6d3429408ceda16ab5145d369c8a01
l3kernel/l3tl.dtx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx
index d4254deef..31abe912a 100644
--- a/l3kernel/l3tl.dtx
+++ b/l3kernel/l3tl.dtx
@@ -2705,11 +2705,16 @@
% \meta{continuation}, which receives as a braced argument
% \cs{@@_trim_mark:} \meta{trimmed token list}. The control sequence
% \cs{@@_trim_mark:} expands to nothing in a single expansion. In the case
-% at hand, we take \cs{exp_not:o} as our continuation, so that space
-% trimming behaves correctly within an \texttt{x}-type expansion.
+% at hand, we take \cs{__kernel_exp_not:w} \cs{exp_after:wN} as our
+% continuation, so that space trimming behaves correctly within an
+% \texttt{x}-type expansion.
% \begin{macrocode}
\cs_new:Npn \tl_trim_spaces:n #1
- { \@@_trim_spaces:nn { \@@_trim_mark: #1 } \exp_not:o }
+ {
+ \@@_trim_spaces:nn
+ { \@@_trim_mark: #1 }
+ { \__kernel_exp_not:w \exp_after:wN }
+ }
\cs_generate_variant:Nn \tl_trim_spaces:n { o }
\cs_new:Npn \tl_trim_spaces_apply:nN #1#2
{ \@@_trim_spaces:nn { \@@_trim_mark: #1 } { \exp_args:No #2 } }
More information about the latex3-commits
mailing list.