[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: correct extgs patch for pgf, expansion, loosing closing >> of dictionaries (2714407)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Mar 10 15:44:37 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/2714407dd11deacc4fd9a4f93c5160efea208c68
>---------------------------------------------------------------
commit 2714407dd11deacc4fd9a4f93c5160efea208c68
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Mar 10 15:44:37 2021 +0100
correct extgs patch for pgf, expansion, loosing closing >> of dictionaries
>---------------------------------------------------------------
2714407dd11deacc4fd9a4f93c5160efea208c68
pdfmanagement-firstaid.dtx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pdfmanagement-firstaid.dtx b/pdfmanagement-firstaid.dtx
index dc33bf0..d5e6ea4 100644
--- a/pdfmanagement-firstaid.dtx
+++ b/pdfmanagement-firstaid.dtx
@@ -204,7 +204,7 @@
% the commands to add page resources
\def\pgf at sys@addpdfresource at extgs@plain##1
{
- \exp_after:wN %for transparent which passes a command
+ %\exp_after:wN %for transparent which passes a command
\@@_patch_pgfextgs:w ##1\q_stop
}
\def\pgf at sys@addpdfresource at patterns@plain##1
@@ -226,11 +226,13 @@
\tl_set:Nn #2 {#4}
}
+\cs_generate_variant:Nn \tl_trim_spaces:n{V}
\cs_new:Npn \@@_patch_pgfextgs:w #1/#2<<#3>>#4\q_stop
{
+ \tl_set:Nx\l_tmpa_tl{#2}
\exp_args:Nne
\__pdf_backend_PageResources_gput:nnn
- {ExtGState}{\tl_trim_spaces:n{#2}}{<<#3>>}
+ {ExtGState}{\tl_trim_spaces:V\l_tmpa_tl}{<<#3 #4>>}
}
\cs_new:Npn \@@_patch_pgfpatterns:w #1/#2\space#3\q_stop
{
More information about the latex3-commits
mailing list.