Thomas Cokelaer schrieb: > Hi Georg, > > I've downloaded the last Sphinx version from the webpage and still got the > same issue with the init__ docstring not being parsed properly. > > I've investigated a litlle bit further and looked at the autodoc.py > extension. The __init__ docstring is read as expected. So, the > configuration is set correctly. Then, the __init__ docstring is appended > to the class docstring. > > However, in the process_doc function (~line 405), in the loop "for > docstringlines in docstrings", the class docstring is returned twice. > > Indeed, the "docstrings" contains the following list: > > docstrings = [["class dostring"],["init docstring"]] > > However, the problem occurs in the call to "self.env.app.emit", where the > variable docstringlines is replaced by docstrings[0]
Hmm. Do you have a handler attached to the autodoc-process-docstring event that does this? Normally, there shouldn't be any change in the docstringlines from this call. Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
