From f38734ef981663a2eeb088625a6623ccf2f1ec42 Mon Sep 17 00:00:00 2001 From: Christian Hess Date: Tue, 20 Dec 2016 14:26:18 -0200 Subject: [PATCH] Add new line correctly in docstring sections (#4759) The order of the line break was wrong --- rest_framework/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index 773df6261..44da83063 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -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: