[latex3-commits] [git/LaTeX3-latex3-latex3] master: Drop IniTeX guards in l3token (see #776) (1d7fcc3ca)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Jul 21 11:27:55 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/1d7fcc3ca5f2a4f82435b7b6df2687d1ee3ce20e
>---------------------------------------------------------------
commit 1d7fcc3ca5f2a4f82435b7b6df2687d1ee3ce20e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Jul 21 10:27:55 2020 +0100
Drop IniTeX guards in l3token (see #776)
>---------------------------------------------------------------
1d7fcc3ca5f2a4f82435b7b6df2687d1ee3ce20e
l3kernel/l3token.dtx | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/l3kernel/l3token.dtx b/l3kernel/l3token.dtx
index cffbea2c9..d4b0e527c 100644
--- a/l3kernel/l3token.dtx
+++ b/l3kernel/l3token.dtx
@@ -1448,10 +1448,8 @@
% auxiliaries reflects that.
% \begin{macrocode}
\group_begin:
-%<*package>
\char_set_catcode_active:N \^^L
\cs_set:Npn ^^L { }
-%</package>
\char_set_catcode_other:n { 0 }
\if_int_odd:w 0
\sys_if_engine_luatex:T { 1 }
@@ -1534,8 +1532,8 @@
% lists, one for each character code, using \tn{tex_lowercase:D} to
% convert |^^@| in each case. The \texttt{x}-type expansion ensures
% that \tn{tex_lowercase:D} receives the contents of the token list.
-% In package mode, |^^L| is awkward hence this is done in three parts.
-% Notice that at this stage |^^@| is active.
+% |^^L| is awkward hence this is done in three parts: up to |^^L|,
+% |^^L| itslef and above |^L|. Notice that at this stage |^^@| is active.
% \begin{macrocode}
\cs_set_protected:Npn \@@_tmp:n #1
{
@@ -1548,17 +1546,12 @@
{ \exp_not:o \l_@@_tmp_tl }
}
}
-%<*package>
\int_step_function:nnN { 0 } { 11 } \@@_tmp:n
\group_begin:
\tl_replace_once:Nnn \l_@@_tmp_tl { ^^@ } { \ERROR }
\@@_tmp:n { 12 }
\group_end:
\int_step_function:nnN { 13 } { 255 } \@@_tmp:n
-%</package>
-%<*initex>
- \int_step_function:nnN { 0 } { 255 } \@@_tmp:n
-%</initex>
% \end{macrocode}
% As \TeX{} is very unhappy if it finds an alignment character inside
% a primitive \tn{halign} even when skipping false branches, some
More information about the latex3-commits
mailing list.