[callable] concatinate all subsequent non-empty docstring lines as description, see test 031.
@@ -109,9 +109,15 @@ def get_doc_desc(func, description, documentation):
doclines = doc.split('\n')
if not description:
- description = doclines[0] or None
+ description = []
+ while len(doclines) and doclines[0]:
+ # consume until first empty line
+ description.append(doclines[0])
doclines = doclines[1:]
- # remove empty lines?
+ # This removes line breaks
+ description = ' '.join(description)
+
+ # remove preceding empty lines
while len(doclines) and not doclines[0]:
doclines = doclines[1:]
