Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8b08b4

Browse files
committed
add a note about how \ulink should be different than it actually is
for PDF generation
1 parent 38f6b88 commit c8b08b4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,7 @@
930930
\ifpdf
931931
% The \noindent here is a hack -- we're forcing pdfTeX into
932932
% horizontal mode since \pdfstartlink requires that.
933+
% For PDF, we *should* only generate a link when the URL is absolute.
933934
\newcommand{\ulink}[2]{\noindent{%
934935
\pdfstartlink attr{/Border [0 0 0]} user{/S /URI /URI (#2)}%
935936
\py@LinkColor% color of the link text

0 commit comments

Comments
 (0)