Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove space between currency symbol and currency value

  • Loading branch information...
commit 7beb5b136877c819763247cf16e9ca7beaa7f6bd 1 parent da43efd
@nzakas authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 framework/src/play/templates/JavaExtensions.java
View
4 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.