[latex3-commits] [git/LaTeX3-latex3-pdfresources] rename-coredict: avoid empty info entries (021283e)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Dec 2 19:36:42 CET 2020
Repository : https://github.com/latex3/pdfresources
On branch : rename-coredict
Link : https://github.com/latex3/pdfresources/commit/021283e9a431eeea4d17c645b380871dde5a2b10
>---------------------------------------------------------------
commit 021283e9a431eeea4d17c645b380871dde5a2b10
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Dec 2 19:36:42 2020 +0100
avoid empty info entries
>---------------------------------------------------------------
021283e9a431eeea4d17c645b380871dde5a2b10
hgeneric-experimental.def | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/hgeneric-experimental.def b/hgeneric-experimental.def
index 8e9143e..e74c3d7 100644
--- a/hgeneric-experimental.def
+++ b/hgeneric-experimental.def
@@ -1448,16 +1448,28 @@
{
pdf#1 .code:n =
{
- \__hyp_text_convert_info:nN {##1}\l__hyp_tmpa_tl
- \pdfmanagement_add:nnx {Info}{#2}{\l__hyp_tmpa_tl}
+ \tl_if_blank:nTF {##1}
+ {
+ \pdfmanagement_remove:nn {Info}{#2}
+ }
+ {
+ \__hyp_text_convert_info:nN {##1}\l__hyp_tmpa_tl
+ \pdfmanagement_add:nnx {Info}{#2}{\l__hyp_tmpa_tl}
+ }
}
}
\keys_define:nn { hyp / info }
{
#2 .code:n =
{
- \__hyp_text_convert_info:nN {##1}\l__hyp_tmpa_tl
- \pdfmanagement_add:nnx {Info}{#2}{\l__hyp_tmpa_tl}
+ \tl_if_blank:nTF {##1}
+ {
+ \pdfmanagement_remove:nn {Info}{#2}
+ }
+ {
+ \__hyp_text_convert_info:nN {##1}\l__hyp_tmpa_tl
+ \pdfmanagement_add:nnx {Info}{#2}{\l__hyp_tmpa_tl}
+ }
}
,unknown .code:n =
{
More information about the latex3-commits
mailing list.