diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-07-10 14:22:04 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-07-10 14:22:04 +0000 |
| commit | 4872e16d1c16b6336260de8a3aff6ac4d240ff83 (patch) | |
| tree | 27d7b29e63b556095d80114bf3360da7cb74d8f4 /docs/templates_python.txt | |
| parent | 4295dd9195d108ebb88e00340747b6239151ce13 (diff) | |
Decimated 'whilst' in docs/templates_python.txt from [3308]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/templates_python.txt')
| -rw-r--r-- | docs/templates_python.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt index 6b37483702..d353abb5bc 100644 --- a/docs/templates_python.txt +++ b/docs/templates_python.txt @@ -669,9 +669,11 @@ Notes: * ``token.contents`` is a string of the raw contents of the tag. In our example, it's ``'current_time "%Y-%m-%d %I:%M %p"'``. - * The ``token.split_contents()`` method separates the arguments on spaces, - whilst keeping quoted strings together. The more straightforward - ``token.contents.split()`` would be as robust. + * The ``token.split_contents()`` method separates the arguments on spaces + while keeping quoted strings together. The more straightforward + ``token.contents.split()`` wouldn't be as robust, as it would naively + split on *all* spaces, including those within quoted strings. It's a good + idea to always use ``token.split_contents()``. * This function is responsible for raising ``django.template.TemplateSyntaxError``, with helpful messages, for |
