(partparse.py): Fix nasty bug where \e got translated to @e only within

the optional arg of an \item[].
This commit is contained in:
Fred Drake 1996-10-25 22:13:10 +00:00
parent 6c3a3aa17b
commit 893e5e0a15
2 changed files with 2 additions and 0 deletions

View 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

View 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