[latex3-commits] [git/LaTeX3-latex3-xcolor] main: guard \@car usage for issue #8 (f890f9d)

David Carlisle d.p.carlisle at gmail.com
Tue Apr 19 23:21:43 CEST 2022


Repository : https://github.com/latex3/xcolor
On branch  : main
Link       : https://github.com/latex3/xcolor/commit/f890f9da67a3fa6ef0f610d1782a69c0abf05925

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

commit f890f9da67a3fa6ef0f610d1782a69c0abf05925
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Tue Apr 19 22:21:43 2022 +0100

    guard \@car usage for issue #8


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

f890f9da67a3fa6ef0f610d1782a69c0abf05925
 xcolor.dtx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xcolor.dtx b/xcolor.dtx
index b30c1dd..dd78aba 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -18,8 +18,8 @@
 %%
 %</package>
 %<*extract|driver|test1|test2|test3|test4>
-\def\XCfileversion{v2.13}%
-\def\XCfiledate{2021/10/31}%
+\def\XCfileversion{v2.14}%
+\def\XCfiledate{2022/04/19}%
 %</extract|driver|test1|test2|test3|test4>
 %
 % This file may be distributed and/or modified under the
@@ -6143,7 +6143,7 @@
   \ifin@\def#2{4}\else\expandafter\in@\expandafter:\expandafter{#2}%
   \ifin@\def#2{3}\else\expandafter\in@\expandafter!\expandafter{#2}%
   \ifin@\def#2{2}\else % now there's no >,:,!
-  \if-\expandafter\@car#2\@nil\def#2{2}\else % catches -red
+  \if-\expandafter\@car#2\relax\@nil\def#2{2}\else % catches -red
   \edef#2{\noexpand\in@{/./}{/#2/}}#2%
   \edef#2{\ifin at 0\else1\fi}\fi\fi\fi\fi}
 %    \end{macrocode}





More information about the latex3-commits mailing list.