]> granicus.if.org Git - python/commitdiff
sf #1009373, #1005936. fix underscores in index entries in PDF files.
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 21 Aug 2004 15:13:52 +0000 (15:13 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 21 Aug 2004 15:13:52 +0000 (15:13 +0000)
I couldn't test this, but it didn't break anything and the patch
reported fixed the problem.

Bugfix candidate.

Doc/texinputs/python.sty
Misc/NEWS

index 5e1ea2bdc18ee02eecf5a8b547cd931e689bf5cf..dd043e1727fca0cdac1ea52faa160044960f859c 100644 (file)
@@ -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]{%
index 6b1dcff26e1462ac9bd18ac737e2b2795a2af339..bc77b7d17278c875a62977db8dc48b3e1fe17af5 100644 (file)
--- 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
 -------------