diff options
| author | Georg Brandl <georg@python.org> | 2010-01-17 19:01:38 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-01-17 19:01:38 +0100 |
| commit | c5399796c61251be62ef60c7476adabdeeab80c8 (patch) | |
| tree | c28e2cca3bce3bad506448132cdffe4b0bb2d4da /sphinx/util | |
| parent | 50cb36da7d8d6436f40aacd63709b58e4459220a (diff) | |
| download | sphinx-c5399796c61251be62ef60c7476adabdeeab80c8.tar.gz | |
Fix refactoring oversight.
Diffstat (limited to 'sphinx/util')
| -rw-r--r-- | sphinx/util/docfields.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py index 1606a620..da93c6fe 100644 --- a/sphinx/util/docfields.py +++ b/sphinx/util/docfields.py @@ -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 |
