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:
parent
cd1e4ae448
commit
3c016fbfd0
|
@ -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[:]
|
||||
|
|
Loading…
Reference in New Issue