[Python-checkins] r46205 - in python/trunk/Doc: ACKS texinputs/python.sty
fred.drake
python-checkins at python.org
Thu May 25 04:42:26 CEST 2006
Author: fred.drake
Date: Thu May 25 04:42:25 2006
New Revision: 46205
Modified:
python/trunk/Doc/ACKS
python/trunk/Doc/texinputs/python.sty
Log:
fix broken links in PDF
(SF patch #1281291, contributed by Rory Yorke)
Modified: python/trunk/Doc/ACKS
==============================================================================
--- python/trunk/Doc/ACKS (original)
+++ python/trunk/Doc/ACKS Thu May 25 04:42:25 2006
@@ -195,6 +195,7 @@
Steven Work
Thomas Wouters
Ka-Ping Yee
+Rory Yorke
Moshe Zadka
Milan Zamazal
Cheng Zhang
Modified: python/trunk/Doc/texinputs/python.sty
==============================================================================
--- python/trunk/Doc/texinputs/python.sty (original)
+++ python/trunk/Doc/texinputs/python.sty Thu May 25 04:42:25 2006
@@ -848,8 +848,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
@@ -925,7 +934,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