mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix refactoring oversight.
This commit is contained in:
parent
baf0087f3a
commit
206484ce07
@ -200,7 +200,6 @@ class DocFieldTransformer(object):
|
||||
# maybe an argument-less field type?
|
||||
fieldtype, fieldarg = fieldname.astext(), ''
|
||||
typedesc, is_typefield = typemap.get(fieldtype, (None, None))
|
||||
typename = typedesc.name
|
||||
|
||||
# sort out unknown fields
|
||||
if typedesc is None or typedesc.has_arg != bool(fieldarg):
|
||||
@ -211,6 +210,8 @@ class DocFieldTransformer(object):
|
||||
entries.append(field)
|
||||
continue
|
||||
|
||||
typename = typedesc.name
|
||||
|
||||
# collect the content, trying not to keep unnecessary paragraphs
|
||||
if _is_single_paragraph(fieldbody):
|
||||
content = fieldbody.children[0].children
|
||||
|
Loading…
Reference in New Issue
Block a user