Skip to content

Commit 0683e95

Browse files
committed
FIX pedantic handling of whitespace in reference regex
1 parent 972b2dc commit 0683e95

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
@@ -50,7 +50,8 @@ def rename_references(app, what, name, obj, options, lines):
5050
references = set()
5151
for line in lines:
5252
line = line.strip()
53-
m = re.match(sixu('^.. \\[(%s)\\]') % app.config.numpydoc_citation_re,
53+
m = re.match(sixu(r'^\.\. +\[(%s)\]') %
54+
app.config.numpydoc_citation_re,
5455
line, re.I)
5556
if m:
5657
references.add(m.group(1))

0 commit comments

Comments
 (0)