summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2009-03-24 22:24:01 +0000
committerPauli Virtanen <pav@iki.fi>2009-03-24 22:24:01 +0000
commit940a7d3b4e6398a742873347a2f3c605ceffe481 (patch)
treea45273e183e85a5e1998cf7c059110596a8192bf
parentb21d2455c755a552d0d9f6f31897e090aa06d9ca (diff)
downloadnumpy-940a7d3b4e6398a742873347a2f3c605ceffe481.tar.gz
sphinxext: autosummary: allow trailing explanations in autosummary items
-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 = {}