Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 893e5e0

Browse files
committed
(partparse.py): Fix nasty bug where \e got translated to @e only within
the optional arg of an \item[].
1 parent 6c3a3aa commit 893e5e0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/partparse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ def changeit(buf, pp):
15091509
ingroupch = pp[i:newi]
15101510
del pp[i:newi]
15111511
length = length - (newi-i)
1512+
changeit(buf, ingroupch) # catch stuff inside the optional arg
15121513
pp.insert(i, chunk(GROUP, ch.where, ingroupch))
15131514
i, length = i+1, length+1
15141515

Doc/tools/partparse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ def changeit(buf, pp):
15091509
ingroupch = pp[i:newi]
15101510
del pp[i:newi]
15111511
length = length - (newi-i)
1512+
changeit(buf, ingroupch) # catch stuff inside the optional arg
15121513
pp.insert(i, chunk(GROUP, ch.where, ingroupch))
15131514
i, length = i+1, length+1
15141515

0 commit comments

Comments
 (0)