Skip to content

Commit e7fce86

Browse files
authored
Merge pull request #181 from jnothman/reference-re
FIX pedantic handling of whitespace in reference regex
2 parents 7ca8e3c + 5c8e1e3 commit e7fce86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpydoc/numpydoc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def rename_references(app, what, name, obj, options, lines):
5353
references = set()
5454
for line in lines:
5555
line = line.strip()
56-
m = re.match(sixu(r'^.. \[(%s)\]') % app.config.numpydoc_citation_re,
56+
m = re.match(sixu(r'^\.\. +\[(%s)\]') %
57+
app.config.numpydoc_citation_re,
5758
line, re.I)
5859
if m:
5960
references.add(m.group(1))

0 commit comments

Comments
 (0)