diff options
author | Alex Sytnik <the.smerch@gmail.com> | 2010-05-30 04:24:32 +0400 |
---|---|---|
committer | Alex Sytnik <the.smerch@gmail.com> | 2010-05-30 04:24:32 +0400 |
commit | 286f1678457860770245160184fe342ffca82e85 (patch) | |
tree | 0a4beadfc2edd74a49816d514283efa243c96da2 /source/blender | |
parent | c6bec43330be0874b4116d259bbaf9fb90ed0556 (diff) |
== Sphinx Doc Gen ==
Workaround to address attribute description issue.
In resulting .rst file attribute's descriptions appeared
not indented which sphinx considered as anoter blocks.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/doc/sphinx_doc_gen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/doc/sphinx_doc_gen.py b/source/blender/python/doc/sphinx_doc_gen.py index aa42c2f8a4a..9044212ac4d 100644 --- a/source/blender/python/doc/sphinx_doc_gen.py +++ b/source/blender/python/doc/sphinx_doc_gen.py @@ -36,6 +36,7 @@ For PDF generation make ''' +# import rpdb2; rpdb2.start_embedded_debugger('test') import os import inspect @@ -133,7 +134,7 @@ def py_descr2sphinx(ident, fw, descr, module_name, type_name, identifier): if type(descr) == GetSetDescriptorType: fw(ident + ".. attribute:: %s\n\n" % identifier) - write_indented_lines(ident, fw, doc, False) + write_indented_lines(ident + " ", fw, doc, False) elif type(descr) == MethodDescriptorType: # GetSetDescriptorType, GetSetDescriptorType's are not documented yet write_indented_lines(ident, fw, doc, False) else: |