diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt
index 0c41446d01..af87a01bb4 100644
--- a/docs/intro/overview.txt
+++ b/docs/intro/overview.txt
@@ -309,7 +309,7 @@ Here's what the "base.html" template, including the use of :doc:`static files
:caption: ``templates/base.html``
{% load static %}
-
+
{% block title %}{% endblock %}
diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt
index c82fb5de85..01e5553ff3 100644
--- a/docs/ref/contrib/flatpages.txt
+++ b/docs/ref/contrib/flatpages.txt
@@ -256,7 +256,7 @@ Here's a sample :file:`flatpages/default.html` template:
.. code-block:: html+django
-
+
{{ flatpage.title }}
diff --git a/docs/topics/http/views.txt b/docs/topics/http/views.txt
index 2985bfb72b..feb4eaa4ec 100644
--- a/docs/topics/http/views.txt
+++ b/docs/topics/http/views.txt
@@ -23,7 +23,7 @@ Here's a view that returns the current date and time, as an HTML document::
def current_datetime(request):
now = datetime.datetime.now()
- html = "It is now %s." % now
+ html = 'It is now %s.' % now
return HttpResponse(html)
Let's step through this code one line at a time:
@@ -225,7 +225,7 @@ Here's an example of an async view::
async def current_datetime(request):
now = datetime.datetime.now()
- html = "It is now %s." % now
+ html = 'It is now %s.' % now
return HttpResponse(html)
You can read more about Django's async support, and how to best use async