[latex3-commits] [git/LaTeX3-latex3-pdfresources] testxmp: don't allow to remove the Lang entry (2219748)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Sep 7 11:17:33 CEST 2022
Repository : https://github.com/latex3/pdfresources
On branch : testxmp
Link : https://github.com/latex3/pdfresources/commit/22197488c1db92040738d6e7e312282d36d90b46
>---------------------------------------------------------------
commit 22197488c1db92040738d6e7e312282d36d90b46
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Sep 7 11:17:33 2022 +0200
don't allow to remove the Lang entry
>---------------------------------------------------------------
22197488c1db92040738d6e7e312282d36d90b46
hyperref-generic.dtx | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index 9601fff..6bf1cba 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -3810,14 +3810,11 @@
{
,pdflang .code:n =
{
- \tl_if_empty:nTF { #1 }
- {
- \pdfmanagement_remove:nn {Catalog} { Lang }
- }
+ \tl_if_empty:nF { #1 }
{
\pdfmanagement_add:nnx {Catalog} { Lang } { (#1) }
+ \AddToDocumentProperties[document]{lang}{#1}
}
- \AddToDocumentProperties[document]{lang}{#1}
}
}
% \end{macrocode}
More information about the latex3-commits
mailing list.