summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-19 06:05:29 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-19 06:05:29 (GMT)
commitc02fbe52b2046a33f3d81628093da7ad2a98ba57 (patch)
tree65f05aa0abb47db106d005d17558bd36b6a9d08f /Doc
parenta73033fcc2916a416561bfad384afb900f207a27 (diff)
downloadcpython-c02fbe52b2046a33f3d81628093da7ad2a98ba57.zip
cpython-c02fbe52b2046a33f3d81628093da7ad2a98ba57.tar.gz
cpython-c02fbe52b2046a33f3d81628093da7ad2a98ba57.tar.bz2
breakable_re: Fix the RE so that module definition entries don't prevent
combining.
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/indfix.py3
-rwxr-xr-xDoc/tools/indfix.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/Doc/indfix.py b/Doc/indfix.py
index ede1d16..395f095 100755
--- a/Doc/indfix.py
+++ b/Doc/indfix.py
@@ -40,7 +40,8 @@ def dump_entries(write, entries):
write(" \subitem %s%s\n" % (subitem, pages))
-breakable_re = re.compile(r" \\item (.*) [(](.*)[)]((?:, \d+)+)")
+breakable_re = re.compile(
+ r" \\item (.*) [(](.*)[)]((?:(?:, \d+)|(?:, \\[a-z]*\{\d+\}))+)")
def main():
import getopt
diff --git a/Doc/tools/indfix.py b/Doc/tools/indfix.py
index ede1d16..395f095 100755
--- a/Doc/tools/indfix.py
+++ b/Doc/tools/indfix.py
@@ -40,7 +40,8 @@ def dump_entries(write, entries):
write(" \subitem %s%s\n" % (subitem, pages))
-breakable_re = re.compile(r" \\item (.*) [(](.*)[)]((?:, \d+)+)")
+breakable_re = re.compile(
+ r" \\item (.*) [(](.*)[)]((?:(?:, \d+)|(?:, \\[a-z]*\{\d+\}))+)")
def main():
import getopt