summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs/python.sty
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-08-21 15:13:52 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-08-21 15:13:52 (GMT)
commit5268c3955ae6c1c2681ba214f5c2e450813913fd (patch)
tree18b4f4ccf3f7a802d371e58c7c742bdf7e8d3f24 /Doc/texinputs/python.sty
parent6abc685a03763a44f4b7abb2a5d0f3c6b2853ac5 (diff)
downloadcpython-5268c3955ae6c1c2681ba214f5c2e450813913fd.zip
cpython-5268c3955ae6c1c2681ba214f5c2e450813913fd.tar.gz
cpython-5268c3955ae6c1c2681ba214f5c2e450813913fd.tar.bz2
sf #1009373, #1005936. fix underscores in index entries in PDF files.
I couldn't test this, but it didn't break anything and the patch reported fixed the problem. Bugfix candidate.
Diffstat (limited to 'Doc/texinputs/python.sty')
-rw-r--r--Doc/texinputs/python.sty1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 5e1ea2b..dd043e1 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -72,6 +72,7 @@
\py@OldContentsline{#1}{\py@linkToName{page\my@pageno}{#2}}{#3}%
}
\AtEndDocument{
+ \def\_{\string_}
\InputIfFileExists{\jobname.bkm}{\pdfcatalog{/PageMode /UseOutlines}}{}
}
\newcommand{\py@target}[1]{%