Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #7417 -- Fixed ReST error in do_if() docstring. Thanks, Richard…

… Bell <rbell01824@earthlink.net>

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2c08986f44a52e3bbd5cb1fb9fd6b2b5a80941e3 1 parent 82d0994
Adrian Holovaty adrianholovaty authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 django/template/defaulttags.py
6 django/template/defaulttags.py
View
@@ -682,8 +682,10 @@ def ifnotequal(parser, token):
def do_if(parser, token):
"""
The ``{% if %}`` tag evaluates a variable, and if that variable is "true"
- (i.e. exists, is not empty, and is not a false boolean value) the contents
- of the block are output::
+ (i.e., exists, is not empty, and is not a false boolean value), the
+ contents of the block are output:
+
+ ::
{% if athlete_list %}
Number of athletes: {{ athlete_list|count }}
Please sign in to comment.
Something went wrong with that request. Please try again.