java/code/src/com/redhat/rhn/domain/server/CustomDataValue.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit a8784398061e90f3477bc06151c0b4bb153d85fe
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Thu Apr 12 11:51:41 2012 +0200
replace \r\n with \n for CustomDataValues
textarea returns \r\n as line breaks
diff --git a/java/code/src/com/redhat/rhn/domain/server/CustomDataValue.java
b/java/code/src/com/redhat/rhn/domain/server/CustomDataValue.java
index a2022ce..f4ed7b8 100644
--- a/java/code/src/com/redhat/rhn/domain/server/CustomDataValue.java
+++ b/java/code/src/com/redhat/rhn/domain/server/CustomDataValue.java
@@ -14,6 +14,7 @@
*/
package com.redhat.rhn.domain.server;
+import com.redhat.rhn.common.util.StringUtil;
import com.redhat.rhn.domain.action.server.ServerAction;
import com.redhat.rhn.domain.org.CustomDataKey;
import com.redhat.rhn.domain.user.User;
@@ -120,7 +121,7 @@ public class CustomDataValue implements Serializable {
* @param valueIn The value to set.
*/
public void setValue(String valueIn) {
- this.value = valueIn;
+ this.value = StringUtil.webToLinux(valueIn);
}
/**
Show replies by date