Add new line correctly in docstring sections (#4759)

The order of the line break was wrong
This commit is contained in:
Christian Hess 2016-12-20 14:26:18 -02:00 committed by Tom Christie
parent c2367fb017
commit f38734ef98

View File

@ -414,7 +414,7 @@ class SchemaGenerator(object):
current_section, seperator, lead = line.partition(':')
sections[current_section] = lead.strip()
else:
sections[current_section] += line + '\n'
sections[current_section] += '\n' + line
header = getattr(view, 'action', method.lower())
if header in sections: