From 4f74a4900a5d396b5f79b4a1ee75f4a32892d0f7 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 1 Sep 2010 23:22:30 +0000 Subject: sphinxext: more lenient parsing for See Also sections --- doc/sphinxext/docscrape.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/sphinxext') diff --git a/doc/sphinxext/docscrape.py b/doc/sphinxext/docscrape.py index ad5998cc6..63fec42ad 100644 --- a/doc/sphinxext/docscrape.py +++ b/doc/sphinxext/docscrape.py @@ -232,7 +232,8 @@ class NumpyDocString(object): current_func = None if ',' in line: for func in line.split(','): - push_item(func, []) + if func.strip(): + push_item(func, []) elif line.strip(): current_func = line elif current_func is not None: -- cgit v1.2.1