[latex3-commits] [latex3/latex2e] ltcmd-verb: Collect \endlinechar as \par in ltcmd +v-type (a64deaea)
github at latex-project.org
github at latex-project.org
Wed Jun 14 11:16:57 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : ltcmd-verb
Link : https://github.com/latex3/latex2e/commit/a64deaea1007ab44fec19d6f061f807d39e11986
>---------------------------------------------------------------
commit a64deaea1007ab44fec19d6f061f807d39e11986
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Jun 14 07:49:22 2023 +0100
Collect \endlinechar as \par in ltcmd +v-type
Includes a temporary fix to l3doc that will need to
be moved back to expl3 in due course.
>---------------------------------------------------------------
a64deaea1007ab44fec19d6f061f807d39e11986
base/changes.txt | 1 +
base/doc/ltnews38.tex | 14 ++++++++++++++
base/ltcmd.dtx | 22 +++++++++++++++++++++-
base/testfiles-ltcmd/github-0876.tlg | 8 ++++----
base/testfiles-lthooks/lthooks-rollback-args.tlg | 2 ++
base/testfiles/github-0479-often.luatex.tlg | 2 ++
base/testfiles/github-0479-often.tlg | 2 ++
base/testfiles/github-0479-often.xetex.tlg | 2 ++
.../tlb-latexrelease-rollback-003-often.luatex.tlg | 4 ++++
.../tlb-latexrelease-rollback-003-often.tlg | 4 ++++
.../tlb-latexrelease-rollback-003-often.xetex.tlg | 4 ++++
...tlb-latexrelease-rollback-2020-10-01.luatex.tlg | 2 ++
.../tlb-latexrelease-rollback-2020-10-01.tlg | 2 ++
.../tlb-latexrelease-rollback-2020-10-01.xetex.tlg | 2 ++
...tlb-latexrelease-rollback-2021-06-01.luatex.tlg | 2 ++
.../tlb-latexrelease-rollback-2021-06-01.tlg | 2 ++
.../tlb-latexrelease-rollback-2021-06-01.xetex.tlg | 2 ++
...tlb-latexrelease-rollback-2021-11-15.luatex.tlg | 2 ++
.../tlb-latexrelease-rollback-2021-11-15.tlg | 2 ++
.../tlb-latexrelease-rollback-2021-11-15.xetex.tlg | 2 ++
...tlb-latexrelease-rollback-2022-06-01.luatex.tlg | 2 ++
.../tlb-latexrelease-rollback-2022-06-01.tlg | 2 ++
.../tlb-latexrelease-rollback-2022-06-01.xetex.tlg | 2 ++
...tlb-latexrelease-rollback-2022-11-01.luatex.tlg | 2 ++
.../tlb-latexrelease-rollback-2022-11-01.tlg | 2 ++
.../tlb-latexrelease-rollback-2022-11-01.xetex.tlg | 2 ++
...tlb-latexrelease-rollback-2023-06-01.luatex.tlg | 2 ++
.../tlb-latexrelease-rollback-2023-06-01.tlg | 2 ++
.../tlb-latexrelease-rollback-2023-06-01.xetex.tlg | 2 ++
base/testfiles/tlb-rollback-004-often.luatex.tlg | 2 ++
base/testfiles/tlb-rollback-004-often.tlg | 2 ++
base/testfiles/tlb-rollback-004-often.xetex.tlg | 2 ++
base/testfiles/tlb-rollback-005.luatex.tlg | 2 ++
base/testfiles/tlb-rollback-005.tlg | 2 ++
base/testfiles/tlb-rollback-005.xetex.tlg | 2 ++
texmf/tex/latex/l3kernel/l3doc.cls | 1 +
36 files changed, 109 insertions(+), 5 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 698d1bbe..77c9a67b 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -12,6 +12,7 @@ are not part of the distribution.
Support (visible) tabs in verbatim material
* ltcmd.dtx
Collect spaces and tabs as active chars
+ Collect \endlinechar as \par
2023-06-09 Joseph Wright <Joseph.Wright at latex-project.org>
diff --git a/base/doc/ltnews38.tex b/base/doc/ltnews38.tex
index 78c8d03e..8b13cf81 100644
--- a/base/doc/ltnews38.tex
+++ b/base/doc/ltnews38.tex
@@ -172,6 +172,20 @@ to easily print visible spaces. We have adjusted the implementation of the
space has been modified. However, the team believe that overall the benefit of
better consistency makes this a necessary change.
+\subsection{Handling of end-of-lines in \cs{NewDocumentCommand} \texttt{+v}
+arguments}
+
+The \texttt{+v} argument type provided by \cs{NewDocumentCommand}, etc., allows
+grabbing of multiple lines of text in a verbatim-like argument. Almost always,
+the result of this grabbing will be used in a typesetting context. Previously,
+the end-of-line characters were stored literally as category code~12
+(\enquote{other}) \verb|^^M| tokens. However, these are difficult to work with
+in general. We have now revised this behavior, such that end-of-line characters
+are converted to the \cs{par} command when parsed by \texttt{+v}-type
+arguments. As with the previous change, this may require adjustment in the
+source of some documents, but the enhanced ability of users and programmers to
+exploit the \texttt{+v}-type argument means we believe it is necessary.
+
\section{Bug fixes}
\section{Changes to packages in the \pkg{amsmath} category}
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 7e87bcdc..06d12db3 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -3548,18 +3548,38 @@
% \end{macro}
%
% \begin{macro}{\@@_grab_v_aux_put:N}
+% \changes{v1.1f}{2023/06/14}{Collect \cs{endlinechar} as \cs{par} token}
% Storing one token in the collected argument. Most tokens are
% converted to category code $12$, with the exception of active
% characters.
% \begin{macrocode}
+%<latexrelease>\IncludeInRelease{2023/11/01}{\@@_grab_v_aux_put:N}%
+%<latexrelease> {Endlines~as~par}
\cs_new_protected:Npn \@@_grab_v_aux_put:N #1
{
\tl_put_right:Nx \l_@@_v_arg_tl
{
\token_if_active:NTF #1
- { \exp_not:N #1 } { \token_to_str:N #1 }
+ { \exp_not:N #1 }
+ {
+ \int_compare:nNnTF {`#1} = \tex_endlinechar:D
+ { \exp_not:N \par }
+ { \token_to_str:N #1 }
+ }
}
}
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{2020/10/01}{\@@_grab_v_aux_put:N}%
+%<latexrelease> {Endlines~as~par}
+%<latexrelease>\cs_new_protected:Npn \@@_grab_v_aux_put:N #1
+%<latexrelease> {
+%<latexrelease> \tl_put_right:Nx \l_@@_v_arg_tl
+%<latexrelease> {
+%<latexrelease> \token_if_active:NTF #1
+%<latexrelease> { \exp_not:N #1 } { \token_to_str:N #1 }
+%<latexrelease> }
+%<latexrelease> }
+%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
% \end{macro}
%
diff --git a/base/testfiles-ltcmd/github-0876.tlg b/base/testfiles-ltcmd/github-0876.tlg
index e06c7c0f..7fde532d 100644
--- a/base/testfiles-ltcmd/github-0876.tlg
+++ b/base/testfiles-ltcmd/github-0876.tlg
@@ -16,7 +16,7 @@ The token list contains the tokens:
> b (the character b)
> a (the character a)
> r (the character r)
-> ^^M (the character ^^M)
+> \par (control sequence=\protected\long macro:->\scan_stop: \mode_if_h\ETC.)
> b (the character b)
> a (the character a)
> r (the character r).
@@ -27,7 +27,7 @@ The token list contains the tokens:
> b (the character b)
> a (the character a)
> r (the character r)
-> ^^M (the character ^^M)
+> \par (control sequence=\protected\long macro:->\scan_stop: \mode_if_h\ETC.)
> b (the character b)
> a (the character a)
> r (the character r).
@@ -35,11 +35,11 @@ The token list contains the tokens:
l. ...bar+
^^M
The token list contains the tokens:
-> ^^M (the character ^^M)
+> \par (control sequence=\protected\long macro:->\scan_stop: \mode_if_h\ETC.)
> b (the character b)
> a (the character a)
> r (the character r)
-> ^^M (the character ^^M)
+> \par (control sequence=\protected\long macro:->\scan_stop: \mode_if_h\ETC.)
> b (the character b)
> a (the character a)
> r (the character r).
diff --git a/base/testfiles-lthooks/lthooks-rollback-args.tlg b/base/testfiles-lthooks/lthooks-rollback-args.tlg
index 735bbea8..d27478cb 100644
--- a/base/testfiles-lthooks/lthooks-rollback-args.tlg
+++ b/base/testfiles-lthooks/lthooks-rollback-args.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/github-0479-often.luatex.tlg b/base/testfiles/github-0479-often.luatex.tlg
index 65d41c28..6a5cd416 100644
--- a/base/testfiles/github-0479-often.luatex.tlg
+++ b/base/testfiles/github-0479-often.luatex.tlg
@@ -124,6 +124,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/github-0479-often.tlg b/base/testfiles/github-0479-often.tlg
index 18a50e4a..807df90e 100644
--- a/base/testfiles/github-0479-often.tlg
+++ b/base/testfiles/github-0479-often.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/github-0479-often.xetex.tlg b/base/testfiles/github-0479-often.xetex.tlg
index 7dfe8a7a..63fc309b 100644
--- a/base/testfiles/github-0479-often.xetex.tlg
+++ b/base/testfiles/github-0479-often.xetex.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
index 556f1e71..9b65a267 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
@@ -106,6 +106,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
@@ -863,6 +865,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
index d905553f..191391db 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
@@ -100,6 +100,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
@@ -847,6 +849,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
index bb63d719..16d16beb 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
@@ -100,6 +100,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
@@ -856,6 +858,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg
index ab58405f..09b8322e 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg
@@ -124,6 +124,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg
index a4ddcb76..a1689fb8 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg
index 3141c9b1..fd3150c3 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg
index bd2f6b80..8194112f 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg
@@ -125,6 +125,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg
index c5902254..e56efccd 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg
index 85735b15..eae15be4 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg
index 4612e030..e8334e24 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg
@@ -125,6 +125,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg
index c83163e9..2d7f3088 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg
@@ -114,6 +114,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg
index 5503784a..adbe52e5 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg
@@ -114,6 +114,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg
index 29d3e804..0225d939 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg
@@ -126,6 +126,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg
index 7cc1f25b..88257fe4 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg
@@ -115,6 +115,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg
index f600d975..c4e58fbb 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg
@@ -115,6 +115,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg
index 5dd527ad..b066820a 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg
@@ -126,6 +126,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg
index cb5693df..b3669414 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg
@@ -115,6 +115,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg
index 06aa8582..2ea24c25 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg
@@ -115,6 +115,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg
index 9aa9e999..20abeb6c 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg
@@ -126,6 +126,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg
index 9cd0ef60..7e8cfc55 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg
@@ -115,6 +115,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg
index 189a3640..2f1de029 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg
@@ -115,6 +115,8 @@ Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Already applied: [....-..-..] Support \ShowCommand in ltcmd on input line ...
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Applying: [....-..-..] Testing for empty or blank on input line ....
Already applied: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.luatex.tlg b/base/testfiles/tlb-rollback-004-often.luatex.tlg
index 15dd2491..3255125c 100644
--- a/base/testfiles/tlb-rollback-004-often.luatex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.luatex.tlg
@@ -125,6 +125,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.tlg b/base/testfiles/tlb-rollback-004-often.tlg
index 238ee136..2f47e2bb 100644
--- a/base/testfiles/tlb-rollback-004-often.tlg
+++ b/base/testfiles/tlb-rollback-004-often.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.xetex.tlg b/base/testfiles/tlb-rollback-004-often.xetex.tlg
index bc642a0e..0b1af080 100644
--- a/base/testfiles/tlb-rollback-004-often.xetex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.xetex.tlg
@@ -114,6 +114,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Applying: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-rollback-005.luatex.tlg b/base/testfiles/tlb-rollback-005.luatex.tlg
index 1dfb241b..7cfb8566 100644
--- a/base/testfiles/tlb-rollback-005.luatex.tlg
+++ b/base/testfiles/tlb-rollback-005.luatex.tlg
@@ -128,6 +128,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-rollback-005.tlg b/base/testfiles/tlb-rollback-005.tlg
index 0869e93c..32488979 100644
--- a/base/testfiles/tlb-rollback-005.tlg
+++ b/base/testfiles/tlb-rollback-005.tlg
@@ -118,6 +118,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/base/testfiles/tlb-rollback-005.xetex.tlg b/base/testfiles/tlb-rollback-005.xetex.tlg
index b093eb4f..8b875b0f 100644
--- a/base/testfiles/tlb-rollback-005.xetex.tlg
+++ b/base/testfiles/tlb-rollback-005.xetex.tlg
@@ -118,6 +118,8 @@ Skipping: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Applying: [....-..-..] Support \ShowCommand in ltcmd on input line ....
Skipping: [....-..-..] Active spaces and tabs on input line ....
Applying: [....-..-..] Active spaces and tabs on input line ....
+Skipping: [....-..-..] Endlines as par on input line ....
+Applying: [....-..-..] Endlines as par on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Testing for empty or blank on input line ....
Skipping: [....-..-..] Document command parser on input line ....
diff --git a/texmf/tex/latex/l3kernel/l3doc.cls b/texmf/tex/latex/l3kernel/l3doc.cls
index f35d1f13..79143afe 100644
--- a/texmf/tex/latex/l3kernel/l3doc.cls
+++ b/texmf/tex/latex/l3kernel/l3doc.cls
@@ -828,6 +828,7 @@
{
\tl_remove_all:Nx \l__codedoc_tmpa_tl
{ \iow_char:N \^^M \c_percent_str }
+ \tl_remove_all:Nx \l__codedoc_tmpa_tl { \token_to_str:N \par \c_space_tl \c_percent_str }
\tl_remove_all:Nx \l__codedoc_tmpa_tl { \tl_to_str:n { ^ ^ A } }
\tl_remove_all:Nx \l__codedoc_tmpa_tl { \iow_char:N \^^I }
\tl_remove_all:Nx \l__codedoc_tmpa_tl { \iow_char:N \^^M }
More information about the latex3-commits
mailing list.