Fixed #26124 -- Added missing code formatting to docs headers.

This commit is contained in:
rowanv 2016-01-24 22:26:11 +01:00 committed by Tim Graham
parent 8bf8d0e0ec
commit a6ef025dfb
93 changed files with 1658 additions and 1625 deletions

View file

@ -76,8 +76,8 @@ Template tags
.. templatetag:: localize
localize
~~~~~~~~
``localize``
~~~~~~~~~~~~
Enables or disables localization of template variables in the
contained block.
@ -110,8 +110,8 @@ Template filters
.. templatefilter:: localize
localize
~~~~~~~~
``localize``
~~~~~~~~~~~~
Forces localization of a single value.
@ -125,11 +125,10 @@ To disable localization on a single value, use :tfilter:`unlocalize`. To control
localization over a large section of a template, use the :ttag:`localize` template
tag.
.. templatefilter:: unlocalize
unlocalize
~~~~~~~~~~
``unlocalize``
~~~~~~~~~~~~~~
Forces a single value to be printed without localization.

View file

@ -257,8 +257,8 @@ Template tags
.. templatetag:: localtime
localtime
~~~~~~~~~
``localtime``
~~~~~~~~~~~~~
Enables or disables conversion of aware datetime objects to the current time
zone in the contained block.
@ -286,8 +286,8 @@ To activate or deactivate conversion for a template block, use::
.. templatetag:: timezone
timezone
~~~~~~~~
``timezone``
~~~~~~~~~~~~
Sets or unsets the current time zone in the contained block. When the current
time zone is unset, the default time zone applies.
@ -306,8 +306,8 @@ time zone is unset, the default time zone applies.
.. templatetag:: get_current_timezone
get_current_timezone
~~~~~~~~~~~~~~~~~~~~
``get_current_timezone``
~~~~~~~~~~~~~~~~~~~~~~~~
You can get the name of the current time zone using the
``get_current_timezone`` tag::
@ -327,8 +327,8 @@ return aware datetimes.
.. templatefilter:: localtime
localtime
~~~~~~~~~
``localtime``
~~~~~~~~~~~~~
Forces conversion of a single value to the current time zone.
@ -340,8 +340,8 @@ For example::
.. templatefilter:: utc
utc
~~~
``utc``
~~~~~~~
Forces conversion of a single value to UTC.
@ -353,8 +353,8 @@ For example::
.. templatefilter:: timezone
timezone
~~~~~~~~
``timezone``
~~~~~~~~~~~~
Forces conversion of a single value to an arbitrary timezone.

View file

@ -477,8 +477,8 @@ directly with the ``number`` argument::
raise forms.ValidationError(self.error_message % number)
Joining strings: string_concat()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joining strings: ``string_concat()``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Standard Python string joins (``''.join([...])``) will not work on lists
containing lazy translation objects. Instead, you can use