[Python-checkins] r64726 - doctools/branches/0.4.x/sphinx/directives/desc.py
georg.brandl
python-checkins at python.org
Sat Jul 5 12:55:07 CEST 2008
Author: georg.brandl
Date: Sat Jul 5 12:55:07 2008
New Revision: 64726
Log:
Add object names for e.g. :ivar:.
Modified:
doctools/branches/0.4.x/sphinx/directives/desc.py
Modified: doctools/branches/0.4.x/sphinx/directives/desc.py
==============================================================================
--- doctools/branches/0.4.x/sphinx/directives/desc.py (original)
+++ doctools/branches/0.4.x/sphinx/directives/desc.py Sat Jul 5 12:55:07 2008
@@ -151,8 +151,9 @@
elif typ == 'type':
param_types[obj] = fbody.astext()
else:
+ fieldname = typ + ' ' + obj
nfield = nodes.field()
- nfield += nodes.field_name(typ, typ)
+ nfield += nodes.field_name(fieldname, fieldname)
nfield += nodes.field_body()
nfield[1] += fbody.children
new_list += nfield
More information about the Python-checkins
mailing list