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
This commit is contained in:
Jannis Leidel 2012-02-09 18:58:17 +00:00
parent d6f9c1e774
commit 75c60e8053
10 changed files with 13 additions and 14 deletions

View file

@ -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
==========================================