mirror of
https://github.com/python/cpython.git
synced 2024-12-12 11:23:56 +08:00
breakable_re: Fix the RE so that module definition entries don't prevent
combining.
This commit is contained in:
parent
a73033fcc2
commit
c02fbe52b2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user