[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlink: rename key to urlencode (14e226d)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Mar 15 13:21:29 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : testlink
Link       : https://github.com/latex3/pdfresources/commit/14e226de9b3ed4851da9a14296aa279897f1491a

>---------------------------------------------------------------

commit 14e226de9b3ed4851da9a14296aa279897f1491a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Mar 15 13:21:29 2021 +0100

    rename key to urlencode


>---------------------------------------------------------------

14e226de9b3ed4851da9a14296aa279897f1491a
 hyperref-generic.dtx | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index dd75a50..f6a8c0f 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -1070,15 +1070,15 @@
 % This needs an explicit option, as the encoding method must be changed.
 %
 %    \begin{macrocode}
-\newif\ifHy at encode
-\define at key{href}{encode}[true]
+\newif\ifHy at urlencode
+\define at key{href}{urlencode}[true]
   {
-    \Hy at boolkey{encode}{#1}
+    \Hy at boolkey{urlencode}{#1}
   }
 \DeclareRobustCommand*{\href}[1][]{%
   \begingroup
   \setkeys{href}{#1}
-  \ifHy at encode
+  \ifHy at urlencode
    \let\protect\@unexpandable at protect
    \tl_set:Nn \l__hyp_text_enc_uri_print_tl {utf8/URI}
   \else
@@ -1089,11 +1089,11 @@
 
 \keys_define:nn { hyp / setup }
   {
-    ,encode .choice:
-    ,encode / true .code:n = { \Hy at encodetrue }
-    ,encode / false .code:n = { \Hy at encodefalse }
-    ,encode .default:n = {true}
-    ,encode .initial:n = {false}
+    ,urlencode .choice:
+    ,urlencode / true .code:n = { \Hy at urlencodetrue }
+    ,urlencode / false .code:n = { \Hy at urlencodefalse }
+    ,urlencode .default:n = {true}
+    ,urlencode .initial:n = {false}
   }
 %    \end{macrocode}
 % \section{Compability commands}





More information about the latex3-commits mailing list.