From 940a7d3b4e6398a742873347a2f3c605ceffe481 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Tue, 24 Mar 2009 22:24:01 +0000 Subject: sphinxext: autosummary: allow trailing explanations in autosummary items --- doc/sphinxext/autosummary_generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/sphinxext') 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 = {} -- cgit v1.2.1