generate_doc: Handle empty lines correctly.

This commit is contained in:
Florian Bruhin 2014-08-03 00:58:46 +02:00
parent acfc95e19d
commit f451d7b98c

View File

@ -103,7 +103,7 @@ def _parse_docstring(func): # noqa
arg_descs[cur_arg_name] = arg_descs[cur_arg_name][:-1]
break
elif not line.strip():
arg_descs[cur_arg_name].append('\n')
arg_descs[cur_arg_name].append('\n\n')
elif line[4:].startswith(' '):
arg_descs[cur_arg_name].append(line.strip() + '\n')
else: