Permalink
Browse files

Update doc/filters/split.rst

Added missing quotes in return values.
  • Loading branch information...
1 parent 9b75e2c commit c3281bbd03c490a657ae0a1abb3adaba1522b8f4 @LouTerrailloune committed Nov 22, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/filters/split.rst
View
@@ -25,18 +25,18 @@ You can also pass a ``limit`` argument:
.. code-block:: jinja
{{ "one,two,three,four,five"|split(',', 3) }}
- {# returns [one, two, "three,four,five"] #}
+ {# returns ['one', 'two', 'three,four,five'] #}
If the ``delimiter`` is an empty string, then value will be split by equal
chunks. Length is set by the ``limit`` argument (one character by default).
.. code-block:: jinja
{{ "123"|split('') }}
- {# returns [1, 2, 3] #}
+ {# returns ['1', '2', '3'] #}
{{ "aabbcc"|split('', 2) }}
- {# returns [aa, bb, cc] #}
+ {# returns ['aa', 'bb', 'cc'] #}
.. note::

0 comments on commit c3281bb

Please sign in to comment.