Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-31 09:43:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-31 09:43:30 +0300
commitd5f2043ab312470db38bd75762169807e9b3d84c (patch)
tree7198f09d175c94d67bccfc441f00e01879425002 /doc
parent1e4c35d910e18858c41924f9e27ef8e1070cbd0a (diff)
PyDoc: fix indentation with multi-line property descriptions
New lines were written without indentation, causing invalid RST to be generated.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/sphinx_doc_gen.py3
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 5c6cf24a178..e71f3b2c303 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1408,7 +1408,8 @@ def pyrna2sphinx(basepath):
else:
fw(" .. attribute:: %s\n\n" % prop.identifier)
if prop.description:
- fw(" %s\n\n" % prop.description)
+ write_indented_lines(" ", fw, prop.description, False)
+ fw("\n")
# special exception, can't use generic code here for enums
if prop.type == "enum":