From 7b8ca1e9121b2f00fc71e3dfae7be635f05d794d Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Thu, 31 Aug 2017 10:28:37 +0200 Subject: [PATCH] unnecessary strip() breaks markdown formatting --- 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 437413355..902656f02 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -476,7 +476,7 @@ class SchemaGenerator(object): return formatting.dedent(smart_text(method_docstring)) description = view.get_view_description() - lines = [line.strip() for line in description.splitlines()] + lines = [line for line in description.splitlines()] current_section = '' sections = {'': ''}