From bae5fba355eabf815560f29a4aa63ab06b6f3ba9 Mon Sep 17 00:00:00 2001 From: Bao-Long Nguyen-Trong Date: Wed, 20 May 2009 04:44:45 +0000 Subject: [PATCH] Better HTMLization of plain text emails using
: spaces /
 identation are now properly displayed

---
 src/com/android/email/mail/store/LocalStore.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/com/android/email/mail/store/LocalStore.java b/src/com/android/email/mail/store/LocalStore.java
index 754e84539..28abf6912 100644
--- a/src/com/android/email/mail/store/LocalStore.java
+++ b/src/com/android/email/mail/store/LocalStore.java
@@ -1469,9 +1469,6 @@ public class LocalStore extends Store implements Serializable {
                             break;
                         case '\r':
                             break;
-                        case '\n':
-                            buff.append("
"); - break; default: buff.append((char)c); }//switch @@ -1484,7 +1481,7 @@ public class LocalStore extends Store implements Serializable { Matcher m = Regex.WEB_URL_PATTERN.matcher(text); StringBuffer sb = new StringBuffer(text.length() + 512); - sb.append(""); + sb.append("
");
             while (m.find()) {
                 int start = m.start();
                 if (start == 0 || (start != 0 && text.charAt(start - 1) != '@')) {
@@ -1494,7 +1491,7 @@ public class LocalStore extends Store implements Serializable {
                 }
             }
             m.appendTail(sb);
-            sb.append("");
+            sb.append("
"); text = sb.toString(); return text;