[Bf-blender-cvs] [d5f2043ab31] master: PyDoc: fix indentation with multi-line property descriptions
Campbell Barton
noreply at git.blender.org
Wed Mar 31 08:49:27 CEST 2021
Commit: d5f2043ab312470db38bd75762169807e9b3d84c
Author: Campbell Barton
Date: Wed Mar 31 17:43:30 2021 +1100
Branches: master
https://developer.blender.org/rBd5f2043ab312470db38bd75762169807e9b3d84c
PyDoc: fix indentation with multi-line property descriptions
New lines were written without indentation,
causing invalid RST to be generated.
===================================================================
M doc/python_api/sphinx_doc_gen.py
===================================================================
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":
More information about the Bf-blender-cvs
mailing list