Commit 61bbe6c3 authored by Fred Drake's avatar Fred Drake

fix broken links in PDF

(SF patch #1281291, contributed by Rory Yorke)
parent 3cdf24bc
......@@ -195,6 +195,7 @@ Dan Wolfe
Steven Work
Thomas Wouters
Ka-Ping Yee
Rory Yorke
Moshe Zadka
Milan Zamazal
Cheng Zhang
......@@ -848,7 +848,16 @@
% but only if we actually used hyperref:
\ifpdf
\newcommand{\url}[1]{{%
\py@pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#1)}%
\py@pdfstartlink%
attr{ /Border [0 0 0] }%
user{%
/Subtype/Link%
/A<<%
/Type/Action%
/S/URI%
/URI(#1)%
>>%
}%
\py@LinkColor% color of the link text
\py@smallsize\sf #1%
\py@NormalColor% Turn it back off; these are declarative
......@@ -925,7 +934,16 @@
\ifpdf
\newcommand{\ulink}[2]{{%
% For PDF, we *should* only generate a link when the URL is absolute.
\py@pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#2)}%
\py@pdfstartlink%
attr{ /Border [0 0 0] }%
user{%
/Subtype/Link%
/A<<%
/Type/Action%
/S/URI%
/URI(#2)%
>>%
}%
\py@LinkColor% color of the link text
#1%
\py@NormalColor% Turn it back off; these are declarative
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment