From 893e5e0a15d79f9dd3cc737974371f4a0149c87a Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 25 Oct 1996 22:13:10 +0000 Subject: [PATCH] (partparse.py): Fix nasty bug where \e got translated to @e only within the optional arg of an \item[]. --- Doc/partparse.py | 1 + Doc/tools/partparse.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Doc/partparse.py b/Doc/partparse.py index ea519b66d85..b83ad835d39 100644 --- a/Doc/partparse.py +++ b/Doc/partparse.py @@ -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 diff --git a/Doc/tools/partparse.py b/Doc/tools/partparse.py index ea519b66d85..b83ad835d39 100644 --- a/Doc/tools/partparse.py +++ b/Doc/tools/partparse.py @@ -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