From 24d8b79bece2e56f23e91c44ced7c5165cd80165 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Fri, 2 Sep 2016 19:08:13 +0100 Subject: [PATCH] Index regexp needs multiline flag. Copied from Perforce Change: 192103 ServerID: perforce.ravenbrook.com --- mps/manual/source/extensions/mps/designs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mps/manual/source/extensions/mps/designs.py b/mps/manual/source/extensions/mps/designs.py index 234e99d2c94..ff532d63a92 100644 --- a/mps/manual/source/extensions/mps/designs.py +++ b/mps/manual/source/extensions/mps/designs.py @@ -83,7 +83,8 @@ def citation_sub(m): fmt += ' "{title}".' return fmt.format(**groups) -index = re.compile(r'^:Index\s+terms:(.*$\n(?:[ \t]+.*$\n)*)', re.IGNORECASE) +index = re.compile(r'^:Index\s+terms:(.*$\n(?:[ \t]+.*$\n)*)', + re.MULTILINE | re.IGNORECASE) # index_term = re.compile(r'^\s*(\w+):\s*(.*?)\s*$', re.MULTILINE)