mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Include paragraph around view description in browable API
This commit is contained in:
parent
12de43fc0c
commit
4d287c7aef
|
@ -59,4 +59,5 @@ def markup_description(description):
|
|||
description = apply_markdown(description)
|
||||
else:
|
||||
description = escape(description).replace('\n', '<br />')
|
||||
description = '<p>' + description + '</p>'
|
||||
return mark_safe(description)
|
||||
|
|
Loading…
Reference in New Issue
Block a user