Skip to content

Commit

Permalink
Fixed #5187 -- Minor doc tweaks. Thanks, Daniel Hahler.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Aug 18, 2007
1 parent d743ccb commit 3b9b877
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions django/template/defaulttags.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -676,16 +676,16 @@ def do_if(parser, token):
tag, because the order of logic would be ambigous. For example, tag, because the order of logic would be ambigous. For example,
this is invalid:: this is invalid::
{% if athlete_list and coach_list or cheerleader_list %} {% if athlete_list and coach_list or cheerleader_list %}
If you need to combine and and or to do advanced logic, just use If you need to combine ``and`` and ``or`` to do advanced logic, just use
nested if tags. For example: nested if tags. For example:
{% if athlete_list %} {% if athlete_list %}
{% if coach_list or cheerleader_list %} {% if coach_list or cheerleader_list %}
We have athletes, and either coaches or cheerleaders! We have athletes, and either coaches or cheerleaders!
{% endif %}
{% endif %} {% endif %}
{% endif %}
""" """
bits = token.contents.split() bits = token.contents.split()
del bits[0] del bits[0]
Expand Down
2 changes: 1 addition & 1 deletion django/template/loader_tags.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def do_extends(parser, token):
This tag may be used in two ways: ``{% extends "base" %}`` (with quotes) This tag may be used in two ways: ``{% extends "base" %}`` (with quotes)
uses the literal value "base" as the name of the parent template to extend, uses the literal value "base" as the name of the parent template to extend,
or ``{% extends variable %}`` uses the value of ``variable`` as either the or ``{% extends variable %}`` uses the value of ``variable`` as either the
name of the parent template to extend (if it evaluates to a string,) or as name of the parent template to extend (if it evaluates to a string) or as
the parent tempate itelf (if it evaluates to a Template object). the parent tempate itelf (if it evaluates to a Template object).
""" """
bits = token.contents.split() bits = token.contents.split()
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Please follow these coding standards when writing code for inclusion in Django:
* Mark all strings for internationalization; see the `i18n documentation`_ * Mark all strings for internationalization; see the `i18n documentation`_
for details. for details.


* In docstrings, use "action words," like so:: * In docstrings, use "action words" such as::


def foo(): def foo():
""" """
Expand Down
2 changes: 1 addition & 1 deletion docs/templates_python.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Subclassing Context: RequestContext


Django comes with a special ``Context`` class, Django comes with a special ``Context`` class,
``django.template.RequestContext``, that acts slightly differently than ``django.template.RequestContext``, that acts slightly differently than
the normal ``django.template.Context``. The first difference is that takes the normal ``django.template.Context``. The first difference is that it takes
an `HttpRequest object`_ as its first argument. For example:: an `HttpRequest object`_ as its first argument. For example::


c = RequestContext(request, { c = RequestContext(request, {
Expand Down

0 comments on commit 3b9b877

Please sign in to comment.