diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-31 09:43:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-31 09:43:30 +0300 |
commit | d5f2043ab312470db38bd75762169807e9b3d84c (patch) | |
tree | 7198f09d175c94d67bccfc441f00e01879425002 /doc | |
parent | 1e4c35d910e18858c41924f9e27ef8e1070cbd0a (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.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 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": |