Fix py domain: TypeError has been raised for class attribute (ref: #5426)

This commit is contained in:
Takeshi KOMIYA 2018-09-22 16:22:39 +09:00
parent a2748f787c
commit 2f4047af78
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ Bugs fixed
* #5453: PDF builds of 'howto' documents have no page numbers * #5453: PDF builds of 'howto' documents have no page numbers
* #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0 * #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
* #5454: latex: Index has disappeared from PDF for Japanese documents * #5454: latex: Index has disappeared from PDF for Japanese documents
* #5426: py domain: TypeError has been raised for class attribute
Testing Testing
-------- --------

View File

@ -318,7 +318,8 @@ class DocFieldTransformer(object):
fieldbody.children[0].extend(xrefs) fieldbody.children[0].extend(xrefs)
else: else:
fieldbody.clear() fieldbody.clear()
fieldbody.extend(xrefs) fieldbody += nodes.paragraph()
fieldbody[0].extend(xrefs)
continue continue