[latex3-commits] [latex3/latex2e] gh1407: corrections (94af72451)
github at latex-project.org
github at latex-project.org
Wed Jul 10 16:14:39 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : gh1407
Link : https://github.com/latex3/latex2e/commit/94af7245155f0857d94858ce5b4672b235c9c9ea
>---------------------------------------------------------------
commit 94af7245155f0857d94858ce5b4672b235c9c9ea
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Wed Jul 10 16:14:39 2024 +0200
corrections
>---------------------------------------------------------------
94af7245155f0857d94858ce5b4672b235c9c9ea
base/doc/ltnews40.tex | 8 ++++----
base/ltmiscen.dtx | 7 ++++---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/base/doc/ltnews40.tex b/base/doc/ltnews40.tex
index d77e60e53..5c17afe2b 100644
--- a/base/doc/ltnews40.tex
+++ b/base/doc/ltnews40.tex
@@ -277,10 +277,10 @@ corrected and the warnings are suppressed.
When the kernel uses \cs{AddToHook} in a region that might be
rolled back (which happens in a few places) and a document requests a
-rollback, we have the situation that the hook already contains code,
-which is then added once more (or slightly differently) during the
-rollback resulting in code duplication or worse in errors. This has
-now been corrected by dropping the code chunk if it exists prior to
+rollback, then we have the situation that the hook already contains code to which we added same
+(or slightly differently) code during the
+rollback; this results in code duplication or, worse, in errors. This has
+now been corrected by dropping any such code chunk (if there is one) prior to
adding the rollback code.
%
\githubissue{1407}
diff --git a/base/ltmiscen.dtx b/base/ltmiscen.dtx
index adb7ee86e..5b1b1e589 100644
--- a/base/ltmiscen.dtx
+++ b/base/ltmiscen.dtx
@@ -279,8 +279,9 @@
% \end{macrocode}
% If we roll back we have to drop stuff before adding chunks,
% otherwise the code will just be appended, i.e., doubled.
-% This would result in a harmless warning during normal format
-% built, because in that case the chunk label doesn't exist.
+% This would result in a harmless warning during the format
+% generation, because in that case the code chunk label doesn't
+% exist, and thus can't be dropped.
% \changes{v1.2e}{2024/07/10}{Drop code chunks before adding them to
% avoid duplication in rollback (gh/1407)}
% \begin{macrocode}
@@ -405,7 +406,7 @@
%<latexrelease>\NewHook{enddocument/end}
% \end{macrocode}
% If we roll back we have to drop stuff before adding chunks,
-% otherwise the code will jsut be appended, i.e., doubled.
+% otherwise the code will just be appended, and thus doubled.
% \changes{v1.2e}{2024/07/10}{Drop code chunks before adding them to
% avoid duplication in rollback (gh/1407)}
% \begin{macrocode}
More information about the latex3-commits
mailing list.