]> granicus.if.org Git - python/commitdiff
(partparse.py): Fix nasty bug where \e got translated to @e only within
authorFred Drake <fdrake@acm.org>
Fri, 25 Oct 1996 22:13:10 +0000 (22:13 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 25 Oct 1996 22:13:10 +0000 (22:13 +0000)
the optional arg of an \item[].

Doc/partparse.py
Doc/tools/partparse.py

index ea519b66d859c74dbdc636750dca02b96129047d..b83ad835d396879df26961ae16656eb2a55d789a 100644 (file)
@@ -1509,6 +1509,7 @@ def changeit(buf, pp):
                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
 
index ea519b66d859c74dbdc636750dca02b96129047d..b83ad835d396879df26961ae16656eb2a55d789a 100644 (file)
@@ -1509,6 +1509,7 @@ def changeit(buf, pp):
                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