[latex3-commits] [git/LaTeX3-latex3-hyperref] testnewkeyval: remove special option test code for tex4ht (2dd720d)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Jul 7 11:44:10 CEST 2022


Repository : https://github.com/latex3/hyperref
On branch  : testnewkeyval
Link       : https://github.com/latex3/hyperref/commit/2dd720df528dbae950f8de12ba41d79c3263eb38

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

commit 2dd720df528dbae950f8de12ba41d79c3263eb38
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jul 7 11:44:10 2022 +0200

    remove special option test code for tex4ht


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

2dd720df528dbae950f8de12ba41d79c3263eb38
 hyperref.dtx | 33 ++-------------------------------
 1 file changed, 2 insertions(+), 31 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index f633a40..4d2214a 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7439,38 +7439,9 @@
 %    \end{macrocode}
 %
 %    Add option |tex4ht| if package |tex4ht| is loaded.
+%    This code has been removed. The option is passed by |tex4ht| anyway.
+%    Special cases should be handled by the document or the |tex4ht| scripts.
 %    \begin{macrocode}
-\@ifpackagewith{hyperref}{tex4ht}{%
-}{%
-  \@ifpackageloaded{tex4ht}{%
-    \PassOptionsToPackage{tex4ht}{hyperref}%
-  }{%
-    \ltx at IfUndefined{HCode}{%
-    }{%
-      \begingroup
-        \def\Hy at pkg{tex4ht}%
-        \def\Hy at temp@A#1\RequirePackage[#2]#3#4\Hy at NIL{%
-          \def\Hy at param{#2#3}%
-          \ifx\Hy at param\ltx at empty
-            \expandafter\ltx at gobble
-          \else
-            \def\Hy at param{#3}%
-            \ifx\Hy at param\Hy at pkg
-              \PassOptionsToPackage{#2}{tex4ht}%
-              \expandafter\expandafter\expandafter\@gobble
-            \else
-              \expandafter\expandafter\expandafter\ltx at firstofone
-            \fi
-          \fi
-          {\Hy at temp@A#4\Hy at NIL}%
-        }%
-        \expandafter
-        \Hy at temp@A\@documentclasshook\RequirePackage[]{}\Hy at NIL
-      \endgroup
-      \PassOptionsToPackage{tex4ht}{hyperref}%
-    }%
-  }%
-}
 %    \end{macrocode}
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.