Commit 893e5e0a authored by Fred Drake's avatar Fred Drake

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

	the optional arg of an \item[].
parent 6c3a3aa1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment