[Numpy-svn] r8682 - branches/1.5.x/doc/sphinxext

numpy-svn@scip... numpy-svn@scip...
Thu Sep 2 15:33:24 CDT 2010


Author: ptvirtan
Date: 2010-09-02 15:33:24 -0500 (Thu, 02 Sep 2010)
New Revision: 8682

Modified:
   branches/1.5.x/doc/sphinxext/docscrape.py
Log:
sphinxext: (backport r8679) more lenient parsing for See Also sections

Modified: branches/1.5.x/doc/sphinxext/docscrape.py
===================================================================
--- branches/1.5.x/doc/sphinxext/docscrape.py	2010-09-02 20:33:09 UTC (rev 8681)
+++ branches/1.5.x/doc/sphinxext/docscrape.py	2010-09-02 20:33:24 UTC (rev 8682)
@@ -232,7 +232,8 @@
                 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:



More information about the Numpy-svn mailing list