[latex3-commits] [git/LaTeX3-latex3-latex2e] gh479: Only grab code if skipping (7050dfa4)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed Mar 10 20:19:09 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh479
Link       : https://github.com/latex3/latex2e/commit/7050dfa4fe1e28f01eb87a17b4708b755adb3849

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

commit 7050dfa4fe1e28f01eb87a17b4708b755adb3849
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed Mar 10 16:19:09 2021 -0300

    Only grab code if skipping


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

7050dfa4fe1e28f01eb87a17b4708b755adb3849
 base/ltvers.dtx | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 5cba8d68..fce07ae4 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -243,20 +243,23 @@
                 {There is an \string\EndIncludeRelease\space missing}%
   \@includeinreleasefalse
   \fi
-  \ifnum 0=\expandafter\@parse at version#1//00\@nil\relax
-    \expandafter\expandafter\expandafter\finish at module@release
+  \ifnum \expandafter\@parse at version#1//00\@nil=0
+    \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{%
+\def\finish at module@release#1#2{%
   \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
+    \toks@\expandafter{\expandafter[\new at moduledate] #2}%
+    \GenericInfo{}{Applying: \the\toks@}%
+  \else
+    \expandafter\gobble at finish@module at release
+  \fi}
+\long\def\gobble at finish@module at release#1\EndModuleRelease{%
   \EndModuleRelease}
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.