From e79a9f7c42bfec55e6709a83a955658b05357aca Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 28 Apr 2022 20:23:49 +0000
Subject: doclicense (28apr22)

git-svn-id: svn://tug.org/texlive/trunk@63167 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/doclicense/doclicense.sty | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/doclicense/doclicense.sty')

diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
index 45393bd99f1..ce723991582 100644
--- a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
+++ b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
@@ -1,4 +1,4 @@
-% SPDX-FileCopyrightText: 2015-2021 Robin Schneider <ypid@riseup.net>
+% SPDX-FileCopyrightText: 2015-2022 Robin Schneider <ypid@riseup.net>
 %
 % SPDX-License-Identifier: LPPL-1.3c
 %
@@ -8,7 +8,7 @@
 
 \NeedsTeXFormat{LaTeX2e}[1998/12/01]
 \ProvidesPackage{doclicense}
-    [2021/07/11 v3.0.0 Support for putting documents under a license]
+    [2022/04/27 v3.1.0 Support for putting documents under a license]
 
 \RequirePackage{kvoptions}
 \DeclareStringOption{type}
@@ -78,7 +78,7 @@
   \@ifpackageloaded{hyperxmp}{%
     % The following options are only defined when the hyperxmp package was loaded.
     \hypersetup{%
-      pdfcopyright  = {\doclicenseLongText},
+      pdfcopyright  = {\doclicenseLongTextForHyperref},
       pdflicenseurl = {\doclicenseURL},
     }
   }{}
@@ -190,6 +190,11 @@
   \href{\doclicenseURL}{\doclicenseLongType\space\enquote{\doclicense@longName}}%
   \doclicense@lang@word@license.\xspace%
 }
+\newcommand{\doclicenseLongTextForHyperref}{%
+  \doclicense@lang@thisDoc\space
+  \doclicenseLongType\space"\doclicense@longName"% chktex 18
+  \doclicense@lang@word@license.%
+}
 \newcommand{\doclicenseIcon}{\doclicense@icon\xspace}
 \newcommand{\doclicenseTypeIcon}{\doclicenseType}
 \newcommand{\doclicenseImageFileName}{%
-- 
cgit v1.2.3

