From 971bca63f70629798b3f903a3e3b2b1f184f9faf Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 14 Jul 2020 19:04:18 +0100 Subject: [PATCH] Remove duplicate

tags * render_markdown returns its content in a

tag, so don't need to wrap again. --- rest_framework/templates/rest_framework/docs/document.html | 2 +- rest_framework/templates/rest_framework/docs/link.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/templates/rest_framework/docs/document.html b/rest_framework/templates/rest_framework/docs/document.html index 4968173c8..7be1b1a04 100644 --- a/rest_framework/templates/rest_framework/docs/document.html +++ b/rest_framework/templates/rest_framework/docs/document.html @@ -4,7 +4,7 @@

{{ document.title }}

{% if document.description %} -

{% render_markdown document.description %}

+ {% render_markdown document.description %} {% endif %}
diff --git a/rest_framework/templates/rest_framework/docs/link.html b/rest_framework/templates/rest_framework/docs/link.html index ecfba7ce4..6f2b370a6 100644 --- a/rest_framework/templates/rest_framework/docs/link.html +++ b/rest_framework/templates/rest_framework/docs/link.html @@ -29,7 +29,7 @@ {{ link.url }}
-

{% render_markdown link.description %}

+ {% render_markdown link.description %} {% if link.fields|with_location:'path' %}

Path Parameters