PyDoc: fix indentation with multi-line property descriptions

New lines were written without indentation,
causing invalid RST to be generated.
This commit is contained in:
Campbell Barton 2021-03-31 17:43:30 +11:00
parent 1e4c35d910
commit d5f2043ab3
1 changed files with 2 additions and 1 deletions

View File

@ -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":