Author: jleroux
Date: Tue Nov 27 07:54:00 2007
New Revision: 598680
URL:
http://svn.apache.org/viewvc?rev=598680&view=revLog:
Done manually from trunk revision: 598679
Modified:
ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java
Modified: ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java?rev=598680&r1=598679&r2=598680&view=diff==============================================================================
--- ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java (original)
+++ ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java Tue Nov 27 07:54:00 2007
@@ -419,10 +419,10 @@
* @return
*/
public static String addToNumberString(String numberString, long addAmount) {
- if (numberString == null) return null;
-
- int origLength = numberString.length();
- long number = Long.parseLong(numberString);
+ if (numberString == null) return null;
+
+ int origLength = numberString.length();
+ long number = Long.parseLong(numberString);
return padNumberString(Long.toString(number + addAmount), origLength);
}
@@ -451,7 +451,7 @@
* </ol>
*/
public static String htmlSpecialChars(String html, boolean doubleQuotes, boolean singleQuotes, boolean insertBR) {
- html = StringUtil.replaceString(html, "&", "&s;");
+ html = StringUtil.replaceString(html, "&", "&");
html = StringUtil.replaceString(html, "<", "<");
html = StringUtil.replaceString(html, ">", ">");
if (doubleQuotes) {