From 5268c3955ae6c1c2681ba214f5c2e450813913fd Mon Sep 17 00:00:00 2001
From: Neal Norwitz <nnorwitz@gmail.com>
Date: Sat, 21 Aug 2004 15:13:52 +0000
Subject: 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.
---
 Doc/texinputs/python.sty | 1 +
 Misc/NEWS                | 9 ++++++---
 2 files changed, 7 insertions(+), 3 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]{%
diff --git a/Misc/NEWS b/Misc/NEWS
index 6b1dcff..bc77b7d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -140,9 +140,12 @@ C API
 Documentation
 -------------
 
-- bug #990669: os.path.normpath may alter the meaning of a path if it contains
-symbolic links. This has been documented in a comment since 1992, but is now in
-the library reference as well.
+- patch #1005936, bug #1009373: fix index entries which contain
+  an underscore when viewed with Acrobat.
+
+- bug #990669: os.path.normpath may alter the meaning of a path if
+  it contains symbolic links. This has been documented in a comment
+  since 1992, but is now in the library reference as well.
 
 New platforms
 -------------
-- 
cgit v0.12

