[latex3-commits] [git/LaTeX3-latex3-latex3] main: Quote graphics names containing spaces (9817cfcd2)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Apr 6 13:57:24 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/9817cfcd2a6ee60b33191f01bb492fee63b4bde5

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

commit 9817cfcd2a6ee60b33191f01bb492fee63b4bde5
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Apr 6 12:14:07 2022 +0100

    Quote graphics names containing spaces


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

9817cfcd2a6ee60b33191f01bb492fee63b4bde5
 l3backend/l3backend-graphics.dtx         | 16 ++++++++++++----
 l3experimental/l3graphics/l3graphics.dtx |  2 ++
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/l3backend/l3backend-graphics.dtx b/l3backend/l3backend-graphics.dtx
index 902985573..0db28458f 100644
--- a/l3backend/l3backend-graphics.dtx
+++ b/l3backend/l3backend-graphics.dtx
@@ -285,8 +285,12 @@
           \l_@@_backend_ext_str
         \exp_args:Nx \@@_backend_getbb_eps:nn
           {
-            \l_@@_backend_name_str - \str_tail:N \l_@@_backend_ext_str
-            -converted-to.pdf
+            \exp_args:Ne \__kernel_file_name_quote:n
+              {
+                \l_@@_backend_name_str
+                - \str_tail:N \l_@@_backend_ext_str
+                -converted-to.pdf
+              }
           }
           {#1}
      }
@@ -306,8 +310,12 @@
           \l_@@_backend_dir_str \l_@@_backend_name_str \l_@@_backend_ext_str
         \exp_args:Nx \@@_backend_include_pdf:n
           {
-            \l_@@_backend_name_str - \str_tail:N \l_@@_backend_ext_str
-            -converted-to.pdf
+            \exp_args:Ne \__kernel_file_name_quote:n
+              {
+                \l_@@_backend_name_str
+                - \str_tail:N \l_@@_backend_ext_str
+                -converted-to.pdf
+              }
           }
       }
   }
diff --git a/l3experimental/l3graphics/l3graphics.dtx b/l3experimental/l3graphics/l3graphics.dtx
index 647b13d11..aa4fa8c57 100644
--- a/l3experimental/l3graphics/l3graphics.dtx
+++ b/l3experimental/l3graphics/l3graphics.dtx
@@ -544,6 +544,8 @@
     \cs_if_exist:cTF { @@_backend_include_ #1 :n }
       {
         \tl_set_eq:NN \l_@@_final_name_str \l_@@_full_name_str
+        \str_set:Nx \l_@@_full_name_str
+         { \exp_args:NV \__kernel_file_name_quote:n \l_@@_full_name_str }
         \exp_args:NnV \use:c { @@_backend_getbb_ #1 :n }
           \l_@@_full_name_str
         \seq_gput_right:NV \g_@@_record_seq \l_@@_final_name_str





More information about the latex3-commits mailing list.