From c02fbe52b2046a33f3d81628093da7ad2a98ba57 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 19 Feb 1998 06:05:29 +0000 Subject: breakable_re: Fix the RE so that module definition entries don't prevent combining. --- Doc/indfix.py | 3 ++- Doc/tools/indfix.py | 3 ++- 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 -- cgit v0.12