diff Doc/texinputs/python.sty @ 33216:6b743cbc4171 legacy-trunk

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.
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 21 Aug 2004 15:13:52 +0000
parents 64cc163eeaf1
children cec31edea414
line wrap: on
line diff
--- a/Doc/texinputs/python.sty	Sat Aug 21 12:30:26 2004 +0000
+++ b/Doc/texinputs/python.sty	Sat Aug 21 15:13:52 2004 +0000
@@ -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]{%