# HG changeset patch # User jruigrok # Date 1250942969 0 # Node ID 07855b5aa0b8a44d4dfff10635eebfe2cd04f29e # Parent 783f0a1970c26ec21f2ba3f1645463ecf4090105 Revert part of the commits with relation to the de locale's use of \xa0 as thousands separator, this is still a proposed change and not the active one. diff --git a/babel/numbers.py b/babel/numbers.py --- a/babel/numbers.py +++ b/babel/numbers.py @@ -133,7 +133,7 @@ >>> format_number(1099, locale='en_US') u'1,099' >>> format_number(1099, locale='de_DE') - u'1\\xa0099' + u'1.099' :param number: the number to format @@ -155,8 +155,8 @@ u'-1.235' >>> format_decimal(1.2345, locale='sv_SE') u'1,234' - >>> format_decimal(12345, locale='de') - u'12\\xa0345' + >>> format_decimal(1.2345, locale='de') + u'1,234' The appropriate thousands grouping and the decimal separator are used for each locale: @@ -184,7 +184,7 @@ >>> format_currency(1099.98, 'USD', locale='es_CO') u'US$\\xa01.099,98' >>> format_currency(1099.98, 'EUR', locale='de_DE') - u'1\\xa0099,98\\xa0\\u20ac' + u'1.099,98\\xa0\\u20ac' The pattern can also be specified explicitly: