[latex3-commits] [git/LaTeX3-latex3-latex3] master: fix documentation of __tl_trim_spaces:nn (44a93534e)

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/44a93534e8123e75c7417a68881b6b015e0a3faf

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

commit 44a93534e8123e75c7417a68881b6b015e0a3faf
Author: Jonathan Spratte <jspratte at yahoo.de>
Date:   Sun Sep 20 13:16:38 2020 +0200

    fix documentation of __tl_trim_spaces:nn


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

44a93534e8123e75c7417a68881b6b015e0a3faf
 l3kernel/l3tl.dtx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/l3kernel/l3tl.dtx b/l3kernel/l3tl.dtx
index 5f18e6c60..d4254deef 100644
--- a/l3kernel/l3tl.dtx
+++ b/l3kernel/l3tl.dtx
@@ -2730,20 +2730,22 @@
 %     \@@_trim_spaces_auxi:w, \@@_trim_spaces_auxii:w,
 %     \@@_trim_spaces_auxiii:w, \@@_trim_spaces_auxiv:w
 %   }
+% \begin{macro}{\@@_trim_mark:}
 %   Trimming spaces from around the input is done using delimited
 %   arguments and quarks, and to get spaces at odd places in the
 %   definitions, we nest those in \cs{@@_tmp:w}, which then receives
 %   a single space as its argument: |#1| is \verb*+ +.
 %   Removing leading spaces is done with \cs{@@_trim_spaces_auxi:w},
-%   which loops until \cs{s_@@_mark}\verb*+ + matches the end of the token
+%   which loops until \cs{@@_trim_mark:}\verb*+ + matches the end of the token
 %   list: then |##1| is the token list and |##3| is
 %   \cs{@@_trim_spaces_auxii:w}. This hands the relevant tokens to the
 %   loop \cs{@@_trim_spaces_auxiii:w}, responsible for trimming
 %   trailing spaces. The end is reached when \verb*+ + \cs{s_@@_nil}
 %   matches the one present in the definition of \cs{tl_trim_spaces:n}.
 %   Then \cs{@@_trim_spaces_auxiv:w} puts the token list into a group,
-%   with \cs{use_none:n} placed there to gobble a lingering \cs{s_@@_mark},
-%   and feeds this to the \meta{continuation}.
+%   with a lingering \cs{@@_trim_mark:} at the start (which will expand to
+%   nothing in one step of expansion), and feeds this to the
+%   \meta{continuation}.
 %    \begin{macrocode}
 \cs_set:Npn \@@_tmp:w #1
   {
@@ -2789,6 +2791,7 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
+% \end{macro}
 %
 % \begin{macro}
 %   {\tl_sort:Nn, \tl_sort:cn, \tl_gsort:Nn, \tl_gsort:cn, \tl_sort:nN}





More information about the latex3-commits mailing list.