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:
parent
1e4c35d910
commit
d5f2043ab3
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue