Commit f38734ef by Christian Hess Committed by Tom Christie

Add new line correctly in docstring sections (#4759)

The order of the line break was wrong
parent c2367fb0
...@@ -414,7 +414,7 @@ class SchemaGenerator(object): ...@@ -414,7 +414,7 @@ class SchemaGenerator(object):
current_section, seperator, lead = line.partition(':') current_section, seperator, lead = line.partition(':')
sections[current_section] = lead.strip() sections[current_section] = lead.strip()
else: else:
sections[current_section] += line + '\n' sections[current_section] += '\n' + line
header = getattr(view, 'action', method.lower()) header = getattr(view, 'action', method.lower())
if header in sections: if header in sections:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment