[latex3-commits] [git/LaTeX3-latex3-latex3] master: slightly faster tl_if_head_is_space:n (a9973c0e3)
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/a9973c0e38e56ed010a2c3424d1aa5fe08da23ef
>---------------------------------------------------------------
commit a9973c0e38e56ed010a2c3424d1aa5fe08da23ef
Author: Jonathan Spratte <jspratte at yahoo.de>
Date: Sat Sep 19 11:43:56 2020 +0200
slightly faster tl_if_head_is_space:n
>---------------------------------------------------------------
a9973c0e38e56ed010a2c3424d1aa5fe08da23ef
l3kernel/l3tl.dtx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx
index e72152332..d8a7adf8e 100644
--- a/l3kernel/l3tl.dtx
+++ b/l3kernel/l3tl.dtx
@@ -3255,9 +3255,9 @@
\prg_return_false:
\fi:
}
-\cs_new:Npn \@@_if_head_is_space:w #1 ~
+\exp_args:Nno \use:n { \cs_new:Npn \@@_if_head_is_space:w #1 ~ }
{
- \tl_if_empty:oF {#1} { f }
+ \@@_if_empty_if:o {#1} \else: f \fi:
\exp_after:wN \use_none:n \exp_after:wN { \if_false: } \fi:
}
% \end{macrocode}
More information about the latex3-commits
mailing list.