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/howto/static-files/index.txt | 2 +- docs/intro/contributing.txt | 4 +- docs/intro/overview.txt | 2 +- docs/intro/tutorial04.txt | 6 +- docs/intro/tutorial06.txt | 2 +- docs/ref/class-based-views/generic-editing.txt | 8 +- docs/ref/contrib/admin/index.txt | 2 +- docs/ref/forms/api.txt | 222 ++++++++++++------------- docs/ref/forms/fields.txt | 50 +++--- docs/ref/forms/widgets.txt | 34 ++-- docs/ref/request-response.txt | 2 +- docs/ref/templates/builtins.txt | 22 +-- docs/ref/templates/language.txt | 4 +- docs/releases/2.1.txt | 4 + docs/topics/auth/default.txt | 4 +- docs/topics/forms/formsets.txt | 66 ++++---- docs/topics/forms/index.txt | 10 +- docs/topics/forms/media.txt | 32 ++-- docs/topics/forms/modelforms.txt | 14 +- docs/topics/i18n/timezones.txt | 2 +- docs/topics/i18n/translation.txt | 12 +- docs/topics/pagination.txt | 2 +- docs/topics/testing/tools.txt | 2 +- 23 files changed, 256 insertions(+), 252 deletions(-) (limited to 'docs') diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt index 847e3c9c19..bff1a5daa1 100644 --- a/docs/howto/static-files/index.txt +++ b/docs/howto/static-files/index.txt @@ -30,7 +30,7 @@ Configuring static files .. code-block:: html+django {% load static %} - My image + My image 4. Store your static files in a folder called ``static`` in your app. For example ``my_app/static/my_app/example.jpg``. diff --git a/docs/intro/contributing.txt b/docs/intro/contributing.txt index 07d9aae379..ef44c81600 100644 --- a/docs/intro/contributing.txt +++ b/docs/intro/contributing.txt @@ -535,8 +535,8 @@ Use the arrow keys to move up and down. +++ b/docs/ref/forms/api.txt @@ -1065,3 +1065,13 @@ You can put several Django forms inside one ``
`` tag. To give each >>> print(father.as_ul()) -
  • -
  • +
  • +
  • + +The prefix can also be specified on the form class:: + diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt index f6e34b0695..7cf17ba376 100644 --- a/docs/intro/overview.txt +++ b/docs/intro/overview.txt @@ -307,7 +307,7 @@ Here's what the "base.html" template, including the use of :doc:`static files {% block title %}{% endblock %} - Logo + Logo {% block content %}{% endblock %} diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 6f685fc402..8e1f8d9aef 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -22,10 +22,10 @@ tutorial, so that the template contains an HTML ```` element: {% csrf_token %} {% for choice in question.choice_set.all %} - -
    + +
    {% endfor %} - +
    A quick rundown: diff --git a/docs/intro/tutorial06.txt b/docs/intro/tutorial06.txt index 0d3dd23315..231ae315ee 100644 --- a/docs/intro/tutorial06.txt +++ b/docs/intro/tutorial06.txt @@ -70,7 +70,7 @@ Next, add the following at the top of ``polls/templates/polls/index.html``: {% load static %} - + The ``{% static %}`` template tag generates the absolute URL of static files. diff --git a/docs/ref/class-based-views/generic-editing.txt b/docs/ref/class-based-views/generic-editing.txt index 65cd772536..8c1fe0f758 100644 --- a/docs/ref/class-based-views/generic-editing.txt +++ b/docs/ref/class-based-views/generic-editing.txt @@ -76,7 +76,7 @@ editing content:
    {% csrf_token %} {{ form.as_p }} - +
    @@ -132,7 +132,7 @@ editing content:
    {% csrf_token %} {{ form.as_p }} - +
    ``UpdateView`` @@ -189,7 +189,7 @@ editing content:
    {% csrf_token %} {{ form.as_p }} - +
    ``DeleteView`` @@ -240,5 +240,5 @@ editing content:
    {% csrf_token %}

    Are you sure you want to delete "{{ object }}"?

    - +
    diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index c043561f17..39c02f26af 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1180,7 +1180,7 @@ subclass:: # for each line of the address and you want to separate each # line by a linebreak return format_html_join( - mark_safe('
    '), + mark_safe('
    '), '{}', ((line,) for line in instance.get_full_address()), ) or mark_safe("I can't determine this address.") diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 5e001a2f62..bafa688f98 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -255,9 +255,9 @@ precedence:: ... comment = forms.CharField() >>> f = CommentForm(initial={'name': 'instance'}, auto_id=False) >>> print(f) - Name: - Url: - Comment: + Name: + Url: + Comment: .. method:: Form.get_initial_for_field(field, field_name) @@ -322,10 +322,10 @@ You can alter the field of :class:`Form` instance to change the way it is presented in the form:: >>> f.as_table().split('\n')[0] - 'Name:' + 'Name:' >>> f.fields['name'].label = "Username" >>> f.as_table().split('\n')[0] - 'Username:' + 'Username:' Beware not to alter the ``base_fields`` attribute because this modification will influence all subsequent ``ContactForm`` instances within the same Python @@ -334,7 +334,7 @@ process:: >>> f.base_fields['name'].label = "Username" >>> another_f = CommentForm(auto_id=False) >>> another_f.as_table().split('\n')[0] - 'Username:' + 'Username:' Accessing "clean" data ====================== @@ -438,10 +438,10 @@ simply ``print`` it:: >>> f = ContactForm() >>> print(f) - - - - + + + + If the form is bound to data, the HTML output will include that data appropriately. For example, if a field is represented by an @@ -455,10 +455,10 @@ include ``checked`` if appropriate:: ... 'cc_myself': True} >>> f = ContactForm(data) >>> print(f) - - - - + + + + This default output is a two-column HTML table, with a ```` for each field. Notice the following: @@ -506,12 +506,12 @@ containing one field:: >>> f = ContactForm() >>> f.as_p() - '

    \n

    \n

    \n

    ' + '

    \n

    \n

    \n

    ' >>> print(f.as_p()) -

    -

    -

    -

    +

    +

    +

    +

    ``as_ul()`` ----------- @@ -525,12 +525,12 @@ flexibility:: >>> f = ContactForm() >>> f.as_ul() - '
  • \n
  • \n
  • \n
  • ' + '
  • \n
  • \n
  • \n
  • ' >>> print(f.as_ul()) -
  • -
  • -
  • -
  • +
  • +
  • +
  • +
  • ``as_table()`` -------------- @@ -543,12 +543,12 @@ it calls its ``as_table()`` method behind the scenes:: >>> f = ContactForm() >>> f.as_table() - '\n\n\n' + '\n\n\n' >>> print(f) - - - - + + + + .. _ref-forms-api-styling-form-rows: @@ -618,20 +618,20 @@ tags nor ``id`` attributes:: >>> f = ContactForm(auto_id=False) >>> print(f.as_table()) - Subject: - Message: - Sender: - Cc myself: + Subject: + Message: + Sender: + Cc myself: >>> print(f.as_ul()) -
  • Subject:
  • -
  • Message:
  • -
  • Sender:
  • -
  • Cc myself:
  • +
  • Subject:
  • +
  • Message:
  • +
  • Sender:
  • +
  • Cc myself:
  • >>> print(f.as_p()) -

    Subject:

    -

    Message:

    -

    Sender:

    -

    Cc myself:

    +

    Subject:

    +

    Message:

    +

    Sender:

    +

    Cc myself:

    If ``auto_id`` is set to ``True``, then the form output *will* include ``