[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh422: Use string comparison for \ProvidesPackage (c9d7b570)
PhelypeOleinik
phelype.oleinik at latex-project.org
Sun Nov 8 02:41:30 CET 2020
Repository : https://github.com/latex3/latex2e
On branch : hotfix/gh422
Link : https://github.com/latex3/latex2e/commit/c9d7b570fc7b1a5d2308ba0f6b44d641ed95f83e
>---------------------------------------------------------------
commit c9d7b570fc7b1a5d2308ba0f6b44d641ed95f83e
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Sat Nov 7 22:41:30 2020 -0300
Use string comparison for \ProvidesPackage
>---------------------------------------------------------------
c9d7b570fc7b1a5d2308ba0f6b44d641ed95f83e
base/ltclass.dtx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 55aa4704..92e08393 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -954,11 +954,15 @@
% \begin{macrocode}
\def\ProvidesPackage#1{%
\xdef\@gtempa{#1}%
- \ifx\@gtempa\@currname\else
+% \end{macrocode}
+% \changes{v1.3u}{2020/11/07}
+% {Use string comparison instead of \cs{ifx}}
+% \begin{macrocode}
+ \@expandtwoargs\@expl at str@if at eq@@nnTF{\@gtempa}{\@currname}{}{%
\@latex at warning@no at line{You have requested
\@cls at pkg\space`\@currname',\MessageBreak
but the \@cls at pkg\space provides `#1'}%
- \fi
+ }%
\@ifnextchar[\@pr at videpackage{\@pr at videpackage[]}}%]
\@onlypreamble\ProvidesPackage
% \end{macrocode}
More information about the latex3-commits
mailing list.