mirror of
https://github.com/ModOrganizer2/pystubs-generation.git
synced 2026-07-27 14:07:13 -07:00
Fix multiline documentation for argument.
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ class Writer:
|
||||
doc += "\nArgs:\n"
|
||||
for arg in args:
|
||||
adocl = arg.doc.strip().split("\n")
|
||||
adoc = adocl[0] + "\n".join(" " + ldoc for ldoc in adocl[1:])
|
||||
adoc = "\n".join([adocl[0]] + [" " + ldoc for ldoc in adocl[1:]])
|
||||
doc += " " + arg.name + ": " + adoc + "\n"
|
||||
|
||||
if not fn.ret.type.is_none() and fn.ret.doc:
|
||||
|
||||
Reference in New Issue
Block a user