Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed some docstrings that were raising Sphinx warnings when running …

…the admindocs tests.
  • Loading branch information...
commit 438ce4ec559152d219a03b50fe840f49dc0e5191 1 parent b88bf9f
@jphalip jphalip authored
Showing with 12 additions and 12 deletions.
  1. +12 −12 django/templatetags/future.py
View
24 django/templatetags/future.py
@@ -23,13 +23,13 @@ def cycle(parser, token):
By default all strings are escaped.
- If you want to disable auto-escaping of variables you can use:
+ If you want to disable auto-escaping of variables you can use::
{% autoescape off %}
{% cycle var1 var2 var3 as somecycle %}
{% autoescape %}
- Or if only some variables should be escaped, you can use:
+ Or if only some variables should be escaped, you can use::
{% cycle var1 var2|safe var3|safe as somecycle %}
"""
@@ -41,23 +41,23 @@ def firstof(parser, token):
"""
This is the future version of `firstof` with auto-escaping.
- This is equivalent to:
+ This is equivalent to::
- {% if var1 %}
- {{ var1 }}
- {% elif var2 %}
- {{ var2 }}
- {% elif var3 %}
- {{ var3 }}
- {% endif %}
+ {% if var1 %}
+ {{ var1 }}
+ {% elif var2 %}
+ {{ var2 }}
+ {% elif var3 %}
+ {{ var3 }}
+ {% endif %}
- If you want to disable auto-escaping of variables you can use:
+ If you want to disable auto-escaping of variables you can use::
{% autoescape off %}
{% firstof var1 var2 var3 "<strong>fallback value</strong>" %}
{% autoescape %}
- Or if only some variables should be escaped, you can use:
+ Or if only some variables should be escaped, you can use::
{% firstof var1 var2|safe var3 "<strong>fallback value</strong>"|safe %}
Please sign in to comment.
Something went wrong with that request. Please try again.