mirror of https://github.com/python/cpython
(partparse.py): Fix nasty bug where \e got translated to @e only within
the optional arg of an \item[].
This commit is contained in:
parent
6c3a3aa17b
commit
893e5e0a15
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue