mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-19 04:53:20 +03:00
Add new line correctly in docstring sections (#4759)
The order of the line break was wrong
This commit is contained in:
parent
c2367fb017
commit
f38734ef98
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user