mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5468 from tk0miya/5426_TypeError_for_class_attributes
Fix py domain: TypeError has been raised for class attribute (ref: #5426)
This commit is contained in:
commit
8d1b3646b9
1
CHANGES
1
CHANGES
@ -34,6 +34,7 @@ Bugs fixed
|
||||
* #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
|
||||
* #5454: latex: Index has disappeared from PDF for Japanese documents
|
||||
* #5432: py domain: ``:type:`` field can't process ``:term:`` references
|
||||
* #5426: py domain: TypeError has been raised for class attribute
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -319,7 +319,8 @@ class DocFieldTransformer(object):
|
||||
fieldbody.children[0].extend(xrefs)
|
||||
else:
|
||||
fieldbody.clear()
|
||||
fieldbody.extend(xrefs)
|
||||
fieldbody += nodes.paragraph()
|
||||
fieldbody[0].extend(xrefs)
|
||||
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user