|
|
@@ -8,7 +8,6 @@ import android.support.annotation.Nullable;
|
|
|
import android.telephony.PhoneNumberUtils;
|
|
|
import android.text.Html;
|
|
|
import android.text.Spanned;
|
|
|
-import android.util.Log;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.security.MessageDigest;
|
|
|
@@ -335,8 +334,10 @@ public class StringUtil {
|
|
|
}
|
|
|
|
|
|
// \\n 문자를 줄바꿈 문자로 변경
|
|
|
- str = str.replaceAll("\\\\n", "\n");
|
|
|
- str = str.replaceAll("\r\n", "\n").replaceAll("\n", " ").replaceAll(" ", " ");
|
|
|
+ str = str.replaceAll("\\\\n", "\n")
|
|
|
+ .replaceAll("\r\n", "\n")
|
|
|
+ .replaceAll("\n", " ")
|
|
|
+ .replaceAll(" ", " ");
|
|
|
|
|
|
// 줄바꿈이 있으면 그대로 전달
|
|
|
/*if (str.contains("\n")) {
|
|
|
@@ -384,7 +385,7 @@ public class StringUtil {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- Log.i("APP# StringUtil | twoLine", "|" + "str: " + str + ", target: " + targetIndex);
|
|
|
+// Log.i("APP# StringUtil | twoLine", "|" + "str: " + str + ", target: " + targetIndex);
|
|
|
return str.substring(0, targetIndex) + "\n" + str.substring(targetIndex + 1);
|
|
|
|
|
|
// String[] titles = str.split(" ");
|