From 3c016fbfd092e0ea2bbdc62b2967a6b1f7da00d5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 18 Jul 2022 19:55:51 +1000 Subject: 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. --- doc/python_api/sphinx_doc_gen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') 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[:] -- cgit v1.2.3