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.
This commit is contained in:
Campbell Barton 2022-07-18 19:55:51 +10:00
parent cd1e4ae448
commit 3c016fbfd0
1 changed files with 2 additions and 1 deletions

View File

@ -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[:]