1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00

Index regexp needs multiline flag.

Copied from Perforce
 Change: 192103
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2016-09-02 19:08:13 +01:00
parent 68d219c53b
commit 24d8b79bec

View file

@ -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)
# <http://sphinx-doc.org/markup/misc.html#directive-index>
index_term = re.compile(r'^\s*(\w+):\s*(.*?)\s*$', re.MULTILINE)