summaryrefslogtreecommitdiff
path: root/doc/sphinxext/autosummary_generate.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sphinxext/autosummary_generate.py')
-rwxr-xr-xdoc/sphinxext/autosummary_generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/sphinxext/autosummary_generate.py b/doc/sphinxext/autosummary_generate.py
index 2c6509760..a32706748 100755
--- a/doc/sphinxext/autosummary_generate.py
+++ b/doc/sphinxext/autosummary_generate.py
@@ -149,7 +149,7 @@ def get_documented_in_lines(lines, module=None, filename=None):
autodoc_re = re.compile(".. auto(function|method|attribute|class|exception|module)::\s*([A-Za-z0-9_.]+)\s*$")
autosummary_re = re.compile(r'^\.\.\s+autosummary::\s*')
module_re = re.compile(r'^\.\.\s+(current)?module::\s*([a-zA-Z0-9_.]+)\s*$')
- autosummary_item_re = re.compile(r'^\s+([_a-zA-Z][a-zA-Z0-9_.]*)\s*')
+ autosummary_item_re = re.compile(r'^\s+([_a-zA-Z][a-zA-Z0-9_.]*)\s*.*?')
toctree_arg_re = re.compile(r'^\s+:toctree:\s*(.*?)\s*$')
documented = {}