From c262252c27dd2ca5553e33de5e39515ddfb4ac1a Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 17 Nov 2012 19:29:31 -0500 Subject: [PATCH] [1.5.X] Fixed #19308 - Clarified stringformat filter example Thanks Shabda Raaj. Backport of 2564e31014 from master --- docs/ref/templates/builtins.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index c7fab8c53dd..d30eb21a41e 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