generate_doc: Handle empty lines correctly.
This commit is contained in:
parent
acfc95e19d
commit
f451d7b98c
@ -103,7 +103,7 @@ def _parse_docstring(func): # noqa
|
|||||||
arg_descs[cur_arg_name] = arg_descs[cur_arg_name][:-1]
|
arg_descs[cur_arg_name] = arg_descs[cur_arg_name][:-1]
|
||||||
break
|
break
|
||||||
elif not line.strip():
|
elif not line.strip():
|
||||||
arg_descs[cur_arg_name].append('\n')
|
arg_descs[cur_arg_name].append('\n\n')
|
||||||
elif line[4:].startswith(' '):
|
elif line[4:].startswith(' '):
|
||||||
arg_descs[cur_arg_name].append(line.strip() + '\n')
|
arg_descs[cur_arg_name].append(line.strip() + '\n')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user