[latex3-commits] [git/LaTeX3-latex3-latex2e] develop+master: test change ; lost two diffs for gh/385 (e4076eef)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jan 7 20:12:33 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop+master
Link       : https://github.com/latex3/latex2e/commit/e4076eef95b70fb6017c7756b112ca05fc695cd5

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

commit e4076eef95b70fb6017c7756b112ca05fc695cd5
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jan 7 20:12:33 2021 +0100

    test change ; lost two diffs for gh/385


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

e4076eef95b70fb6017c7756b112ca05fc695cd5
 base/ltmiscen.dtx              | 30 ++++++++++++++++++++++++++++++
 base/testfiles/github-0424.tlg |  2 ++
 2 files changed, 32 insertions(+)

diff --git a/base/ltmiscen.dtx b/base/ltmiscen.dtx
index cf7f3c83..f7317286 100644
--- a/base/ltmiscen.dtx
+++ b/base/ltmiscen.dtx
@@ -214,6 +214,7 @@
 % \changes{v1.1i}{2000/05/19}
 %            {Reset \cs{AtEndDocument} for latex/3060}
 %    \begin{macrocode}
+   \@kernel at before@enddocument
    \UseOneTimeHook{enddocument}%
    \@kernel at after@enddocument
 %    \end{macrocode}
@@ -390,6 +391,35 @@
 %<*2ekernel>
 %    \end{macrocode}
 %
+%  \begin{macro}{\@kernel at before@enddocument}
+%    The \cs{@kernel at before@enddocument} hook is slightly different
+%    because we initialize it with \cs{par} so that \cs{enddocument} always
+%    returns to vertical mode as its first action. 
+% \changes{v1.1x}{2020/10/26}{\cs{enddocument} should always start out in
+%    vmode (gh/385)}
+%    \begin{macrocode}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2021/05/01}%
+%<latexrelease>                 {\@kernel at before@enddocument}{kernel before hook}%
+\def\@kernel at before@enddocument{\par}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%    \end{macrocode}
+%
+%    The rollback code renders it harmless.
+%    \begin{macrocode}
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease>                 {\@kernel at before@enddocument}{kernel before hook}%
+%<latexrelease>
+%<latexrelease>\let\@kernel at before@enddocument\@empty
+%<latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+%    \end{macrocode}
+%  \end{macro}
+%
+%
 %
 %
 % \begin{macro}{\@testdef}
diff --git a/base/testfiles/github-0424.tlg b/base/testfiles/github-0424.tlg
index ed375614..9b012ded 100644
--- a/base/testfiles/github-0424.tlg
+++ b/base/testfiles/github-0424.tlg
@@ -3,6 +3,8 @@ Don't change this file in any respect.
 -> The hook 'begindocument/end':
 > Code chunks:
 >     kernel -> \nocite {A,B}\nocite {C}
+> Document-level (top-level) code (executed last):
+>     ---
 > Extra code for next invocation:
 >     ---
 > Rules:





More information about the latex3-commits mailing list.