diff options
author | Fred Drake <fdrake@acm.org> | 1996-10-25 22:13:10 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1996-10-25 22:13:10 (GMT) |
commit | 893e5e0a15d79f9dd3cc737974371f4a0149c87a (patch) | |
tree | dbc3995d4784f1125cbc6a19b839a6ded4d42830 /Doc | |
parent | 6c3a3aa17b028f6b93067083d32c7eaa4338757c (diff) | |
download | cpython-893e5e0a15d79f9dd3cc737974371f4a0149c87a.zip cpython-893e5e0a15d79f9dd3cc737974371f4a0149c87a.tar.gz cpython-893e5e0a15d79f9dd3cc737974371f4a0149c87a.tar.bz2 |
(partparse.py): Fix nasty bug where \e got translated to @e only within
the optional arg of an \item[].
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/partparse.py | 1 | ||||
-rw-r--r-- | Doc/tools/partparse.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Doc/partparse.py b/Doc/partparse.py index ea519b6..b83ad83 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 ea519b6..b83ad83 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 |