[latex3-commits] [git/LaTeX3-latex3-pdfresources] reworking-annot: avoid empty author from hyperxmp (d1bbdc8)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Feb 9 00:07:11 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : reworking-annot
Link : https://github.com/latex3/pdfresources/commit/d1bbdc8decc739bd97f31c24515f34312a183fa3
>---------------------------------------------------------------
commit d1bbdc8decc739bd97f31c24515f34312a183fa3
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Feb 9 00:07:11 2021 +0100
avoid empty author from hyperxmp
>---------------------------------------------------------------
d1bbdc8decc739bd97f31c24515f34312a183fa3
hyperref-generic.dtx | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 18e9c30..4f894cc 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -3388,7 +3388,10 @@
}
{
\@@_text_pdfstring_info:nN {##1}\l_@@_tmpa_str
- \pdfmanagement_add:nnx {Info}{#2}{\l_@@_tmpa_str}
+ \str_if_eq:VnF\l_@@_tmpa_str{<FEFF>}
+ {
+ \pdfmanagement_add:nnx {Info}{#2}{\l_@@_tmpa_str}
+ }
}
\@@_store_metadata:nn {pdf#1}{##1}
}
@@ -3403,15 +3406,22 @@
}
{
\@@_text_pdfstring_info:nN {##1}\l_@@_tmpa_str
- \pdfmanagement_add:nnx {Info}{#2}{\l_@@_tmpa_str}
+ \str_if_eq:VnF\l_@@_tmpa_str{<FEFF>}
+ {
+ \pdfmanagement_add:nnx {Info}{#2}{\l_@@_tmpa_str}
+ }
}
\exp_args:Nx \@@_store_metadata:nn {pdf\str_lowercase:n{#1}}{##1}
}
,unknown .code:n =
{
\@@_text_pdfstring_info:nN {##1}\l_@@_tmpa_str
- \exp_args:Nnx
- \pdfmanagement_add:nnx {Info}{\pdf_text_convert:nV {name }\l_keys_key_str}{\l_@@_tmpa_str}
+ \str_if_eq:VnF\l_@@_tmpa_str{<FEFF>}
+ {
+ \exp_args:Nnx
+ \pdfmanagement_add:nnx {Info}
+ {\pdf_text_convert:nV {name }\l_keys_key_str}{\l_@@_tmpa_str}
+ }
}
}
}
More information about the latex3-commits
mailing list.