Skip to content

Commit

Permalink
[1.7.x] Fixed formatting in docs/ref/templates/builtins.txt
Browse files Browse the repository at this point in the history
Backport of 6023312 from master
  • Loading branch information
mlorant authored and timgraham committed Apr 14, 2015
1 parent dce97cb commit 4c9d79e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/ref/templates/builtins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2452,24 +2452,24 @@ If ``value`` is ``Joel is a slug``, the output would be::
yesno
^^^^^

Maps values for true, false and (optionally) None, to the strings "yes", "no",
"maybe", or a custom mapping passed as a comma-separated list, and
Maps values for ``True``, ``False``, and (optionally) ``None``, to the strings
"yes", "no", "maybe", or a custom mapping passed as a comma-separated list, and
returns one of those strings according to the value:

For example::

{{ value|yesno:"yeah,no,maybe" }}

========== ====================== ==================================
========== ====================== ===========================================
Value Argument Outputs
========== ====================== ==================================
========== ====================== ===========================================
``True`` ``yes``
``True`` ``"yeah,no,maybe"`` ``yeah``
``False`` ``"yeah,no,maybe"`` ``no``
``None`` ``"yeah,no,maybe"`` ``maybe``
``None`` ``"yeah,no"`` ``"no"`` (converts None to False
if no mapping for None is given)
========== ====================== ==================================
``None`` ``"yeah,no"`` ``no`` (converts ``None`` to ``False``
if no mapping for ``None`` is given)
========== ====================== ===========================================

Internationalization tags and filters
-------------------------------------
Expand Down

0 comments on commit 4c9d79e

Please sign in to comment.