[Python-checkins] r46206 - in python/branches/release24-maint/Doc: ACKS texinputs/python.sty

fred.drake python-checkins at python.org
Thu May 25 04:45:39 CEST 2006


Author: fred.drake
Date: Thu May 25 04:45:39 2006
New Revision: 46206

Modified:
   python/branches/release24-maint/Doc/ACKS
   python/branches/release24-maint/Doc/texinputs/python.sty
Log:
fix broken links in PDF
(SF patch #1281291, contributed by Rory Yorke)


Modified: python/branches/release24-maint/Doc/ACKS
==============================================================================
--- python/branches/release24-maint/Doc/ACKS	(original)
+++ python/branches/release24-maint/Doc/ACKS	Thu May 25 04:45:39 2006
@@ -192,6 +192,7 @@
 Steven Work
 Thomas Wouters
 Ka-Ping Yee
+Rory Yorke
 Moshe Zadka
 Milan Zamazal
 Cheng Zhang

Modified: python/branches/release24-maint/Doc/texinputs/python.sty
==============================================================================
--- python/branches/release24-maint/Doc/texinputs/python.sty	(original)
+++ python/branches/release24-maint/Doc/texinputs/python.sty	Thu May 25 04:45:39 2006
@@ -869,8 +869,17 @@
 % but only if we actually used hyperref:
 \ifpdf
   \newcommand{\url}[1]{{%
-    \py at pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#1)}%
-    \py at LinkColor%                              color of the link text
+    \py at pdfstartlink%
+    attr{ /Border [0 0 0] }%
+    user{%
+      /Subtype/Link%
+      /A<<%
+      /Type/Action%
+      /S/URI%
+      /URI(#1)%
+      >>%
+    }%
+    \py at LinkColor%                      color of the link text
     \py at smallsize\sf #1%
     \py at NormalColor%                    Turn it back off; these are declarative
     \pdfendlink}%                       and don't appear bound to the current
@@ -946,7 +955,16 @@
 \ifpdf
   \newcommand{\ulink}[2]{{%
     % For PDF, we *should* only generate a link when the URL is absolute.
-    \py at pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#2)}%
+    \py at pdfstartlink%
+    attr{ /Border [0 0 0] }%
+    user{%
+      /Subtype/Link%
+      /A<<%
+      /Type/Action%
+      /S/URI%
+      /URI(#2)%
+      >>%
+    }%
     \py at LinkColor%                              color of the link text
     #1%
     \py at NormalColor%                    Turn it back off; these are declarative


More information about the Python-checkins mailing list