Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
61bbe6c3
Commit
61bbe6c3
authored
May 25, 2006
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix broken links in PDF
(SF patch #1281291, contributed by Rory Yorke)
parent
3cdf24bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
Doc/ACKS
Doc/ACKS
+1
-0
Doc/texinputs/python.sty
Doc/texinputs/python.sty
+21
-3
No files found.
Doc/ACKS
View file @
61bbe6c3
...
...
@@ -195,6 +195,7 @@ Dan Wolfe
Steven Work
Thomas Wouters
Ka-Ping Yee
Rory Yorke
Moshe Zadka
Milan Zamazal
Cheng Zhang
Doc/texinputs/python.sty
View file @
61bbe6c3
...
...
@@ -848,8 +848,17 @@
% but only if we actually used hyperref:
\ifpdf
\newcommand
{
\url
}
[1]
{{
%
\py
@pdfstartlink attr
{
/Border [0 0 0]
}
user
{
/S /URI /URI (#1)
}
%
\py
@LinkColor
% color of the link text
\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
\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
@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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment