mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +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(':')
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user