Ticket #5187: minor-doc-fixes.diff

File minor-doc-fixes.diff, 2.6 KB (added by http://daniel.hahler.de/, 17 years ago)
  • django/template/defaulttags.py

     
    678678
    679679    {% if athlete_list and coach_list or cheerleader_list %}
    680680
    681     If you need to combine and and or to do advanced logic, just use
    682     nested if tags. For example:
     681    If you need to combine ``and`` and ``or`` to do advanced logic, just
     682    use nested if tags. For example::
    683683
    684     {% if athlete_list %}
    685         {% if coach_list or cheerleader_list %}
    686             We have athletes, and either coaches or cheerleaders!
     684        {% if athlete_list %}
     685            {% if coach_list or cheerleader_list %}
     686                We have athletes, and either coaches or cheerleaders!
     687            {% endif %}
    687688        {% endif %}
    688     {% endif %}
    689689    """
    690690    bits = token.contents.split()
    691691    del bits[0]
  • django/template/loader_tags.py

     
    140140    This tag may be used in two ways: ``{% extends "base" %}`` (with quotes)
    141141    uses the literal value "base" as the name of the parent template to extend,
    142142    or ``{% extends variable %}`` uses the value of ``variable`` as either the
    143     name of the parent template to extend (if it evaluates to a string,) or as
     143    name of the parent template to extend (if it evaluates to a string) or as
    144144    the parent tempate itelf (if it evaluates to a Template object).
    145145    """
    146146    bits = token.contents.split()
  • docs/contributing.txt

     
    286286    * Mark all strings for internationalization; see the `i18n documentation`_
    287287      for details.
    288288
    289     * In docstrings, use "action words," like so::
     289    * In docstrings, use "action words" like so::
    290290
    291291          def foo():
    292292              """
  • docs/templates_python.txt

     
    277277
    278278Django comes with a special ``Context`` class,
    279279``django.template.RequestContext``, that acts slightly differently than
    280 the normal ``django.template.Context``. The first difference is that takes
     280the normal ``django.template.Context``. The first difference is that it takes
    281281an `HttpRequest object`_ as its first argument. For example::
    282282
    283283    c = RequestContext(request, {
Back to Top