diff options
author | Campbell Barton <campbell@blender.org> | 2022-07-18 12:55:51 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-07-18 13:00:21 +0300 |
commit | 3c016fbfd092e0ea2bbdc62b2967a6b1f7da00d5 (patch) | |
tree | 6a4b18f18b7a8a27a2fe651db38fe11510d9f12a /doc | |
parent | cd1e4ae4483056157f238f56f19367ad98ae3f3d (diff) |
Fix error indenting new-lines in generated RST API docs
New-lines in RNA type descriptions caused invalid RST indentation.
This resolve the error noted by @nutti in D15481.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 17ffdb8e244..f5e0369cede 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1529,7 +1529,8 @@ def pyrna2sphinx(basepath): else: fw(".. class:: %s\n\n" % struct_id) - fw(" %s\n\n" % struct.description) + write_indented_lines(" ", fw, struct.description, False) + fw("\n") # Properties sorted in alphabetical order. sorted_struct_properties = struct.properties[:] |