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:
parent
68d219c53b
commit
24d8b79bec
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue