Permalink
Browse files

Remove space between currency symbol and currency value

  • Loading branch information...
1 parent da43efd commit 7beb5b136877c819763247cf16e9ca7beaa7f6bd Nicholas C. Zakas committed Aug 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 framework/src/play/templates/JavaExtensions.java
@@ -263,7 +263,7 @@ public static String formatCurrency(Number number, String currencyCode) {
numberFormat.setCurrency(currency);
numberFormat.setMaximumFractionDigits(currency.getDefaultFractionDigits());
String s = numberFormat.format(number);
- s = s.replace(currencyCode, I18N.getCurrencySymbol(currencyCode));
+ s = s.replace(currencyCode + " ", I18N.getCurrencySymbol(currencyCode));
return s;
}
@@ -273,7 +273,7 @@ public static String formatCurrency(Number number, Locale locale) {
numberFormat.setCurrency(currency);
numberFormat.setMaximumFractionDigits(currency.getDefaultFractionDigits());
String s = numberFormat.format(number);
- s = s.replace(currency.getCurrencyCode(), currency.getSymbol(locale));
+ s = s.replace(currency.getCurrencyCode() + " ", currency.getSymbol(locale));
return s;
}

0 comments on commit 7beb5b1

Please sign in to comment.