diff options
| author | Tim Graham <timograham@gmail.com> | 2012-11-17 19:29:31 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-11-17 19:32:51 -0500 |
| commit | c262252c27dd2ca5553e33de5e39515ddfb4ac1a (patch) | |
| tree | 4fe962335310564190bb3f252cc9b52bbe50885f /docs/ref | |
| parent | 31da2a5e56dba374279cc8276d9ccb2e3096e4a9 (diff) | |
[1.5.X] Fixed #19308 - Clarified stringformat filter example
Thanks Shabda Raaj.
Backport of 2564e31014 from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index c7fab8c53d..d30eb21a41 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1911,9 +1911,9 @@ for documentation of Python string formatting For example:: - {{ value|stringformat:"s" }} + {{ value|stringformat:"E" }} -If ``value`` is ``"Joel is a slug"``, the output will be ``"Joel is a slug"``. +If ``value`` is ``10``, the output will be ``1.000000E+01``. .. templatefilter:: striptags |
