@@ -376,9 +376,9 @@ def get_plus_sign_symbol(
376376 >>> get_plus_sign_symbol('en_US')
377377 '+'
378378 >>> get_plus_sign_symbol('ar_EG', numbering_system='default')
379- '\u061c +'
379+ '\\ u061c+'
380380 >>> get_plus_sign_symbol('ar_EG', numbering_system='latn')
381- '\u200e +'
381+ '\\ u200e+'
382382
383383 :param locale: the `Locale` object or locale identifier. Defaults to the system numeric locale.
384384 :param numbering_system: The numbering system used for fetching the symbol. Defaults to "latn".
@@ -399,9 +399,9 @@ def get_minus_sign_symbol(
399399 >>> get_minus_sign_symbol('en_US')
400400 '-'
401401 >>> get_minus_sign_symbol('ar_EG', numbering_system='default')
402- '\u061c -'
402+ '\\ u061c-'
403403 >>> get_minus_sign_symbol('ar_EG', numbering_system='latn')
404- '\u200e -'
404+ '\\ u200e-'
405405
406406 :param locale: the `Locale` object or locale identifier. Defaults to the system numeric locale.
407407 :param numbering_system: The numbering system used for fetching the symbol. Defaults to "latn".
@@ -609,7 +609,7 @@ def format_compact_decimal(
609609 >>> format_compact_decimal(21000000, format_type="long", locale="mk")
610610 '21 милион'
611611 >>> format_compact_decimal(12345, format_type="short", locale='ar_EG', fraction_digits=2, numbering_system='default')
612- '12٫34\xa0 ألف'
612+ '12٫34\\ xa0ألف'
613613
614614 :param number: the number to format
615615 :param format_type: Compact format to use ("short" or "long")
@@ -694,16 +694,16 @@ def format_currency(
694694 >>> format_currency(1099.98, 'EUR', locale='de_DE')
695695 '1.099,98\\ xa0\\ u20ac'
696696 >>> format_currency(1099.98, 'EGP', locale='ar_EG', numbering_system='default')
697- '\u200f 1٬099٫98\xa0 ج.م.\u200f '
697+ '\\ u200f1٬099٫98\\ xa0ج.م.\ \ u200f'
698698
699699 The format can also be specified explicitly. The currency is
700700 placed with the '¤' sign. As the sign gets repeated the format
701701 expands (¤ being the symbol, ¤¤ is the currency abbreviation and
702702 ¤¤¤ is the full name of the currency):
703703
704- >>> format_currency(1099.98, 'EUR', '\xa4 \xa4 #,##0.00', locale='en_US')
704+ >>> format_currency(1099.98, 'EUR', '\\ xa4\ \ xa4 #,##0.00', locale='en_US')
705705 'EUR 1,099.98'
706- >>> format_currency(1099.98, 'EUR', '#,##0.00 \xa4 \xa4 \xa4 ', locale='en_US')
706+ >>> format_currency(1099.98, 'EUR', '#,##0.00 \\ xa4\\ xa4\ \ xa4', locale='en_US')
707707 '1,099.98 euros'
708708
709709 Currencies usually have a specific number of decimal digits. This function
@@ -861,7 +861,7 @@ def format_compact_currency(
861861 >>> format_compact_currency(123456789, 'USD', locale='en_US', fraction_digits=2)
862862 '$123.46M'
863863 >>> format_compact_currency(123456789, 'EUR', locale='de_DE', fraction_digits=1)
864- '123,5\xa0 Mio.\xa0 €'
864+ '123,5\\ xa0Mio.\ \ xa0€'
865865
866866 :param number: the number to format
867867 :param currency: the currency code
@@ -920,7 +920,7 @@ def format_percent(
920920
921921 The format pattern can also be specified explicitly:
922922
923- >>> format_percent(25.1234, '#,##0\u2030 ', locale='en_US')
923+ >>> format_percent(25.1234, '#,##0\\ u2030', locale='en_US')
924924 '25,123‰'
925925
926926 By default the locale is allowed to truncate and round a high-precision
0 commit comments