Skip to content

Commit

Permalink
Merge pull request #1387 from muzimuzhi/gh1386-everypar-rollback
Browse files Browse the repository at this point in the history
Append \everypar toks to \g__para_standard_everypar_tl
  • Loading branch information
josephwright committed Jun 26, 2024
1 parent eadc7c2 commit c9598ef
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
6 changes: 6 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2024-06-23 Yukai Chou <muzimuzhi@gmail.com>

* ltpara.dtx
Append \everypar toks to \g__parar_standard_everypar_tl, rollback
2023/06/01 (gh/1386)

2024-06-19 David Carlisle <David.Carlisle@latex-project.org>

* fontdef.dtx:
Expand Down
13 changes: 13 additions & 0 deletions base/doc/ltnews39.tex
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,19 @@ \subsection{Struts at the end of footnotes or \texttt{p} columns}
\pkg{bigfoot})}


\subsection{Fix a ``missing \cs{item}'' rollback error}

If \LaTeX{} is rolled back to a date between 2023/06/01 (inclusive) and
2024/06/01 (exclusive), any list-based environment would raise an error
\begin{verbatim}
! LaTeX Error: Something's wrong--perhaps a missing \item.
\end{verbatim}
This has now been corrected as a hotfix in patch level 2, by enhancing
a 2023/06/01 version rollback code of new paragraph mechanism.
%
\githubissue{1386}



\section{Changes to packages in the \pkg{amsmath} category}

Expand Down
22 changes: 17 additions & 5 deletions base/ltpara.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
%<*driver>
% \fi
\ProvidesFile{ltpara.dtx}
[2024/05/16 v1.0m LaTeX Kernel (paragraph hooks)]
[2024/06/23 v1.0n LaTeX Kernel (paragraph hooks)]
% \iffalse
%
\documentclass{l3doc}
Expand Down Expand Up @@ -819,6 +819,18 @@
\@@_handle_indent:
% \the \everypar % <--- done differently below
}
% \end{macrocode}
% \changes{v1.0n}{2024/06/23}
% {Append \cs{everypar} toks to \cs{g_@@_standard_everypar_tl},
% rollback 2023/06/01 (gh/1386)}
% \begin{macrocode}
%<latexrelease>\cs_set:Npn \@@_tmp:w #1#2#3#4#5 { }
%<latexrelease>\tl_gput_right:Nx \g_@@_standard_everypar_tl {
%<latexrelease> \exp_not:N \the
%<latexrelease> \exp_not:N \toks
%<latexrelease> \exp_after:wN \@@_tmp:w \token_to_meaning:N \everypar
%<latexrelease> \c_space_tl
%<latexrelease>}
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{2021/06/01}
%<latexrelease> {\g_@@_standard_everypar_tl}{minipage~ fix}
Expand Down Expand Up @@ -917,10 +929,10 @@
% the paragraph text starts.
% \begin{macrocode}
\tl_gput_right:Nx \g_@@_standard_everypar_tl {
\exp_not:N \the
\exp_not:N \toks
\the \allocationnumber
\c_space_tl
\exp_not:N \the
\exp_not:N \toks
\the \allocationnumber
\c_space_tl
}
% \end{macrocode}
% \end{macro}
Expand Down
17 changes: 17 additions & 0 deletions base/testfiles/github-1386.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

\RequirePackage[2024-05-01]{latexrelease}

\documentclass{article}

\input{test2e}

\begin{document}

\START

% should not raise errors
\begin{itemize}
\item This is an item.
\end{itemize}

\END
2 changes: 2 additions & 0 deletions base/testfiles/github-1386.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This is a generated file for the LaTeX2e validation system.
Don't change this file in any respect.

0 comments on commit c9598ef

Please sign in to comment.