From d46fa57c68b1f6ff4e9f2da6bf9c1e60045c89cf Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Fri, 6 Feb 2009 00:27:08 +0000 Subject: doc/numpydoc: work better together with Sphinx's config option --- doc/sphinxext/numpydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/sphinxext/numpydoc.py') diff --git a/doc/sphinxext/numpydoc.py b/doc/sphinxext/numpydoc.py index 21a5ae5ec..ff6c44c53 100644 --- a/doc/sphinxext/numpydoc.py +++ b/doc/sphinxext/numpydoc.py @@ -28,7 +28,7 @@ def mangle_docstrings(app, what, name, obj, options, lines, re.I|re.S) lines[:] = title_re.sub('', "\n".join(lines)).split("\n") else: - doc = get_doc_object(obj, what) + doc = get_doc_object(obj, what, "\n".join(lines)) lines[:] = str(doc).split("\n") if app.config.numpydoc_edit_link and hasattr(obj, '__name__') and \ -- cgit v1.2.1