[latex3-commits] [git/LaTeX3-latex3-latex2e] gh479: Add undo-module code from FMi (e2f7b059)
PhelypeOleinik
phelype.oleinik at latex-project.org
Wed Mar 10 20:15:23 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : gh479
Link : https://github.com/latex3/latex2e/commit/e2f7b059f289f601bee5e419835b2197cc720ceb
>---------------------------------------------------------------
commit e2f7b059f289f601bee5e419835b2197cc720ceb
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Wed Mar 10 16:15:23 2021 -0300
Add undo-module code from FMi
>---------------------------------------------------------------
e2f7b059f289f601bee5e419835b2197cc720ceb
base/ltvers.dtx | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 776a4700..210aceb0 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -243,13 +243,21 @@
{There is an \string\EndIncludeRelease\space missing}%
\@includeinreleasefalse
\fi
- \ifx\EndModuleRelease#1%
- \expandafter\EndModuleRelease
+ \ifnum 0=\expandafter\@parse at version#1//00\@nil\relax
+ \expandafter\expandafter\expandafter\finish at module@release
\expandafter\@gobblefour
\fi
\kernel at ifnextchar[%
{\@IncludeInRelease{#1}}
{\@IncludeInRelease{#1}[#1]}}
+\long\def\finish at module@release#1#2#3\EndModuleRelease{%
+ \ifnum\expandafter\@parse at version\new at moduledate//00\@nil
+ >\expandafter\@parse at version\fmtversion//00\@nil
+ \GenericInfo{}{Undoing module \new at modulename\space
+ (\new at moduledate)}%
+ #3%
+ \fi
+ \EndModuleRelease}
% \end{macrocode}
%
% If a specific date has not been specified in |latexrelease|
More information about the latex3-commits
mailing list.