[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: don't set a color if model is really unknown (5aec5aa)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jun 11 19:30:47 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/5aec5aa19d19abd44f586981658aa97bd7bf94ba

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

commit 5aec5aa19d19abd44f586981658aa97bd7bf94ba
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jun 11 19:30:47 2022 +0200

    don't set a color if model is really unknown


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

5aec5aa19d19abd44f586981658aa97bd7bf94ba
 firstaid/xcolor-patches-tmp-ltx.sty | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/firstaid/xcolor-patches-tmp-ltx.sty b/firstaid/xcolor-patches-tmp-ltx.sty
index 17ecbfe..aa3245f 100644
--- a/firstaid/xcolor-patches-tmp-ltx.sty
+++ b/firstaid/xcolor-patches-tmp-ltx.sty
@@ -35,7 +35,10 @@
                {
                  %this is for multi models, it will break if there is model
                  %l3 doesn't know, but the case is rare, so accept it for now.
-                 \color_set:nnn{#1}{#2}{#3}
+                 \str_if_in:nnT {#2}{/}
+                  {
+                    \color_set:nnn{#1}{#2}{#3}
+                  }  
                }
            }
         }





More information about the latex3-commits mailing list.