summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2012-02-09 18:58:17 +0000
committerJannis Leidel <jannis@leidel.info>2012-02-09 18:58:17 +0000
commit75c60e80536552125f014fde15e2964ec128c65c (patch)
treef7acc0d19a87eea11087a9d3bc5376a51c56c0bc /docs
parentd6f9c1e7744f1c8eeb19c76d9c9b8ec04d1e96d2 (diff)
Fixed #17217 -- Use non breaking spaces for format localization in which spaces are used. Thanks, Claude Paroz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/formatting.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/topics/i18n/formatting.txt b/docs/topics/i18n/formatting.txt
index 2ca96ed57e..4c80786edc 100644
--- a/docs/topics/i18n/formatting.txt
+++ b/docs/topics/i18n/formatting.txt
@@ -176,11 +176,10 @@ To customize the English formats, a structure like this would be needed::
where :file:`formats.py` contains custom format definitions. For example::
- THOUSAND_SEPARATOR = ' '
-
-to use a space as a thousand separator, instead of the default for English,
-a comma.
+ THOUSAND_SEPARATOR = u' '
+to use a non-breaking space (Unicode ``00A0``) as a thousand separator,
+instead of the default for English, a comma.
Limitations of the provided locale formats
==========================================