From 595be7aef06489fb9e7545232cdd5a7d5e4061aa Mon Sep 17 00:00:00 2001 From: Wheerd Date: Mon, 21 Nov 2016 19:11:04 +0100 Subject: [PATCH] Fixed the regular expression for xref to only match roles that are valid. This caused errors when having multiple successive xrefs without whitespace between them. --- sphinx/ext/napoleon/docstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/ext/napoleon/docstring.py b/sphinx/ext/napoleon/docstring.py index 7df6e83ab..6fee87b34 100644 --- a/sphinx/ext/napoleon/docstring.py +++ b/sphinx/ext/napoleon/docstring.py @@ -33,7 +33,7 @@ _google_section_regex = re.compile(r'^(\s|\w)+:\s*$') _google_typed_arg_regex = re.compile(r'\s*(.+?)\s*\(\s*(.*[^\s]+)\s*\)') _numpy_section_regex = re.compile(r'^[=\-`:\'"~^_*+#<>]{2,}\s*$') _single_colon_regex = re.compile(r'(?\()?'