diff Doc/partparse.py @ 4506:2b21ea2f39b4 legacy-trunk

(partparse.py): Fix nasty bug where \e got translated to @e only within the optional arg of an \item[].
author Fred Drake <fdrake@acm.org>
date Fri, 25 Oct 1996 22:13:10 +0000
parents a98011f0f9ca
children b218f294b726
line wrap: on
line diff
--- a/Doc/partparse.py	Fri Oct 25 15:40:20 1996 +0000
+++ b/Doc/partparse.py	Fri Oct 25 22:13:10 1996 +0000
@@ -1509,6 +1509,7 @@
 		ingroupch = pp[i:newi]
 		del pp[i:newi]
 		length = length - (newi-i)
+		changeit(buf, ingroupch) # catch stuff inside the optional arg
 		pp.insert(i, chunk(GROUP, ch.where, ingroupch))
 		i, length = i+1, length+1