[latex3-commits] [git/LaTeX3-latex3-pdfresources] test-new-hooks: adjust mimetype warning (d6e536d)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun May 10 00:25:56 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : test-new-hooks
Link       : https://github.com/latex3/pdfresources/commit/d6e536daab4037001a20f0ab4439202a9dd552f2

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

commit d6e536daab4037001a20f0ab4439202a9dd552f2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun May 10 00:25:56 2020 +0200

    adjust mimetype warning


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

d6e536daab4037001a20f0ab4439202a9dd552f2
 l3pdffile.dtx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/l3pdffile.dtx b/l3pdffile.dtx
index 565ed5b..fa3c602 100644
--- a/l3pdffile.dtx
+++ b/l3pdffile.dtx
@@ -335,6 +335,7 @@
     ,.png = image/png
     ,.tex = text/plain %or application/x-tex, not in iana.org list
     ,.txt = text/plain
+    ,.sty = text/plain
   }
 %    \end{macrocode}
 % \begin{variable}
@@ -404,8 +405,8 @@
                 \tl_set:Nx #2 {/Subtype~\pdftool_name:V \l_tmpa_tl}
               }
               {
+                \msg_warning:nnx { pdffile }{ mimetype-missing} {#1}
                 \tl_clear:N #2
-                \msg_warning:nnn { pdffile }{ mimetype-missing} { #2 }
               }
           }
     }





More information about the latex3-commits mailing list.