From ff05de760cc4ef4c7f188e163c722ec3bc1f0cbf Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 20 Jan 2018 23:09:10 -0800 Subject: Fixed #29038 -- Removed closing slash from HTML void tags. --- docs/ref/templates/builtins.txt | 22 +++++++++++----------- docs/ref/templates/language.txt | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'docs/ref/templates') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index ec05d16292..6f37b04320 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1192,7 +1192,7 @@ value to a maximum value, and then applies that ratio to a constant. For example:: Bar + height="10" width="{% widthratio this_value max_value max_width %}"> If ``this_value`` is 175, ``max_value`` is 200, and ``max_width`` is 100, the image in the above example will be 88 pixels wide @@ -1832,14 +1832,14 @@ If ``value`` is ``['a', 'b', 'c', 'd']`` or ``"abcd"``, the output will be -------------- Replaces line breaks in plain text with appropriate HTML; a single -newline becomes an HTML line break (``
``) and a new line +newline becomes an HTML line break (``
``) and a new line followed by a blank line becomes a paragraph break (``

``). For example:: {{ value|linebreaks }} -If ``value`` is ``Joel\nis a slug``, the output will be ``

Joel
is a +If ``value`` is ``Joel\nis a slug``, the output will be ``

Joel
is a slug

``. .. templatefilter:: linebreaksbr @@ -1848,13 +1848,13 @@ slug

``. ---------------- Converts all newlines in a piece of plain text to HTML line breaks -(``
``). +(``
``). For example:: {{ value|linebreaksbr }} -If ``value`` is ``Joel\nis a slug``, the output will be ``Joel
is a +If ``value`` is ``Joel\nis a slug``, the output will be ``Joel
is a slug``. .. templatefilter:: linenumbers @@ -2531,20 +2531,20 @@ app is installed, the tag will serve files using ``url()`` method of the storage specified by :setting:`STATICFILES_STORAGE`. For example:: {% load static %} - Hi! + Hi! It is also able to consume standard context variables, e.g. assuming a ``user_stylesheet`` variable is passed to the template:: {% load static %} - + If you'd like to retrieve a static URL without displaying it, you can use a slightly different call:: {% load static %} {% static "images/hi.jpg" as myphoto %} - + .. admonition:: Using Jinja2 templates? @@ -2561,7 +2561,7 @@ over exactly where and how :setting:`STATIC_URL` is injected into the template, you can use the :ttag:`get_static_prefix` template tag:: {% load static %} - Hi! + Hi! There's also a second form you can use to avoid extra processing if you need the value multiple times:: @@ -2569,8 +2569,8 @@ the value multiple times:: {% load static %} {% get_static_prefix as STATIC_PREFIX %} - Hi! - Hello! + Hi! + Hello! .. templatetag:: get_media_prefix diff --git a/docs/ref/templates/language.txt b/docs/ref/templates/language.txt index 806832e061..c6ce3b3dfd 100644 --- a/docs/ref/templates/language.txt +++ b/docs/ref/templates/language.txt @@ -291,7 +291,7 @@ It's easiest to understand template inheritance by starting with an example:: - + {% block title %}My amazing site{% endblock %} @@ -344,7 +344,7 @@ like:: - + My amazing blog -- cgit v1.3