diff options
| author | Tom Christie | 2015-01-14 13:19:56 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-14 13:19:56 +0000 |
| commit | 4d287c7aef7b12086930eeb7a05cadb7e8b2cc48 (patch) | |
| tree | 2ac77b75cf2f47d022a1a04c3976d9e6f63c0378 | |
| parent | 12de43fc0cc83a2ba2042dd361d8fe3a2da6cf44 (diff) | |
| download | django-rest-framework-4d287c7aef7b12086930eeb7a05cadb7e8b2cc48.tar.bz2 | |
Include paragraph around view description in browable API
| -rw-r--r-- | rest_framework/utils/formatting.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/utils/formatting.py b/rest_framework/utils/formatting.py index 470af51b..173848df 100644 --- a/rest_framework/utils/formatting.py +++ b/rest_framework/utils/formatting.py @@ -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) |
