diff --git a/docs/internals/contributing/writing-documentation.txt b/docs/internals/contributing/writing-documentation.txt
index a8db5d93fd3..10b7edbca85 100644
--- a/docs/internals/contributing/writing-documentation.txt
+++ b/docs/internals/contributing/writing-documentation.txt
@@ -198,7 +198,7 @@ Output is printed to the terminal, but can also be found in
     The execution of the command requires an internet connection and takes
     several minutes to complete, because the command tests all the links
     that are found in the documentation.
-    
+
 Entries that have a status of "working" are fine, those that are "unchecked" or
 "ignored" have been skipped because they either cannot be checked or have
 matched ignore rules in the configuration.
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt
index 6014a4e78f8..7b0de1173ff 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -679,7 +679,7 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
         user permissions and group permissions. Returns an empty set if
         :attr:`~django.contrib.auth.models.AbstractBaseUser.is_anonymous` or
         :attr:`~django.contrib.auth.models.CustomUser.is_active` is ``False``.
-    
+
         .. versionchanged:: 5.2
 
             ``aget_all_permissions()`` function was added.
diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt
index 9ce16ff2ab7..c6c83dcdfb0 100644
--- a/docs/ref/forms/api.txt
+++ b/docs/ref/forms/api.txt
@@ -1416,7 +1416,7 @@ Methods of ``BoundField``
 
 .. method:: BoundField.render(template_name=None, context=None, renderer=None)
 
-    The render method is called by ``as_field_group``. All arguments are 
+    The render method is called by ``as_field_group``. All arguments are
     optional and default to:
 
     * ``template_name``: :attr:`.BoundField.template_name`
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 6051122617d..2b4b3448445 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -392,7 +392,7 @@ be ignored in favor of the value from the form's initial data.
 .. attribute:: Field.template_name
 
 The ``template_name`` argument allows a custom template to be used when the
-field is rendered with :meth:`~django.forms.BoundField.as_field_group`. By 
+field is rendered with :meth:`~django.forms.BoundField.as_field_group`. By
 default this value is set to ``"django/forms/field.html"``. Can be changed per
 field by overriding this attribute or more generally by overriding the default
 template, see also :ref:`overriding-built-in-field-templates`.
diff --git a/docs/releases/3.1.6.txt b/docs/releases/3.1.6.txt
index 027d2f3b16f..9805e32579d 100644
--- a/docs/releases/3.1.6.txt
+++ b/docs/releases/3.1.6.txt
@@ -17,5 +17,5 @@ dot segments.
 Bugfixes
 ========
 
-* Fixed an admin layout issue in Django 3.1 where changelist filter controls 
+* Fixed an admin layout issue in Django 3.1 where changelist filter controls
   would become squashed (:ticket:`32391`).
diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt
index 037c76fd545..799f3ee819d 100644
--- a/docs/releases/5.1.txt
+++ b/docs/releases/5.1.txt
@@ -116,8 +116,8 @@ Minor features
 * The default iteration count for the PBKDF2 password hasher is increased from
   720,000 to 870,000.
 
-* The default ``parallelism`` of the ``ScryptPasswordHasher`` is 
-  increased from 1 to 5, to follow OWASP recommendations.
+* The default ``parallelism`` of the ``ScryptPasswordHasher`` is increased from
+  1 to 5, to follow OWASP recommendations.
 
 * The new :class:`~django.contrib.auth.forms.AdminUserCreationForm` and
   the existing :class:`~django.contrib.auth.forms.AdminPasswordChangeForm` now