diff --git a/CHANGES b/CHANGES index 16edc8042..fe0f2c32d 100644 --- a/CHANGES +++ b/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 -------- diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py index 2b8cb6425..94968e148 100644 --- a/sphinx/util/docfields.py +++ b/sphinx/util/docfields.py @@ -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