From c3281bbd03c490a657ae0a1abb3adaba1522b8f4 Mon Sep 17 00:00:00 2001 From: Vincent Terraillon Date: Thu, 22 Nov 2012 11:21:50 +0100 Subject: [PATCH] Update doc/filters/split.rst Added missing quotes in return values. --- doc/filters/split.rst | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/filters/split.rst b/doc/filters/split.rst index 9108a5c..7cd2ca5 100644 --- a/doc/filters/split.rst +++ b/doc/filters/split.rst @@ -25,7 +25,7 @@ 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). @@ -33,10 +33,10 @@ 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:: -- 1.7.2.5