summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/ltclass.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltclass.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/ltclass.dtx19
1 files changed, 16 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltclass.dtx b/Master/texmf-dist/source/latex/base/ltclass.dtx
index ecbcbfff2cf..b1d81c5d6bf 100644
--- a/Master/texmf-dist/source/latex/base/ltclass.dtx
+++ b/Master/texmf-dist/source/latex/base/ltclass.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltclass.dtx}
- [2016/11/09 v1.2b LaTeX Kernel (Class & Package Interface)]
+ [2017/03/08 v1.2c LaTeX Kernel (Class & Package Interface)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltclass.dtx}
@@ -631,8 +631,22 @@
%
% \changes{v1.1j}{2016/06/20}
% {don't declare as \cs{@onlypreamble}}
+% \changes{v1.2c}{2017/03/08}
+% {add \cs{@parse@version@dash} to support yyyy-mm-dd as well as yyyy/mm/dd }
% \begin{macrocode}
-\def\@parse@version#1/#2/#3#4#5\@nil{#1#2#3#4 }
+%</2ekernel>
+%<*2ekernel|isodate>
+\def\@parse@version#1/#2/#3#4#5\@nil{%
+\@parse@version@dash#1-#2-#3#4\@nil
+}
+% \end{macrocode}
+%
+% The |\if| test here ensures that an argument with no |/| or |-| produces 0 (actually 00).
+% \begin{macrocode}
+\def\@parse@version@dash#1-#2-#3#4#5\@nil{%
+ \if\relax#2\relax\else#1\fi#2#3#4 }
+%</2ekernel|isodate>
+%<*2ekernel>
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -794,7 +808,6 @@
% \wlog{File: #1 #2}%
% \expandafter\xdef\csname ver@#1\endcsname{#2}%
% \endgroup}
-% \end{macrocode}
%\end{verbatim}
% \end{macro}
% \end{macro}