mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Automated merge with ssh://hg@bitbucket.org/birkenfeld/sphinx
This commit is contained in:
commit
2d76170b9c
@ -473,13 +473,14 @@ class RstGenerator(object):
|
|||||||
sys.getfilesystemencoding(), 'replace')
|
sys.getfilesystemencoding(), 'replace')
|
||||||
sourcename = u'%s:docstring of %s' % (srcname, fullname)
|
sourcename = u'%s:docstring of %s' % (srcname, fullname)
|
||||||
attr_docs = analyzer.find_attr_docs()
|
attr_docs = analyzer.find_attr_docs()
|
||||||
key = ('.'.join(objpath[:-1]), objpath[-1])
|
if objpath:
|
||||||
if key in attr_docs:
|
key = ('.'.join(objpath[:-1]), objpath[-1])
|
||||||
no_docstring = True
|
if key in attr_docs:
|
||||||
docstrings = [attr_docs[key]]
|
no_docstring = True
|
||||||
for i, line in enumerate(self.process_doc(docstrings, what,
|
docstrings = [attr_docs[key]]
|
||||||
fullname, todoc)):
|
for i, line in enumerate(self.process_doc(docstrings, what,
|
||||||
self.result.append(indent + line, sourcename, i)
|
fullname, todoc)):
|
||||||
|
self.result.append(indent + line, sourcename, i)
|
||||||
else:
|
else:
|
||||||
sourcename = u'docstring of %s' % fullname
|
sourcename = u'docstring of %s' % fullname
|
||||||
attr_docs = {}
|
attr_docs = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user