mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
text->html now does a better job converting
---------------------------------------------------------
This commit is contained in:
parent
cdf0693e27
commit
46ddc7d8e5
@ -1993,6 +1993,7 @@ public class LocalStore extends Store implements Serializable
|
||||
Log.e(Email.LOG_TAG, null, e);
|
||||
}
|
||||
text = buff.toString();
|
||||
text = text.replaceAll("\\s*([-=_]{30,}+)\\s*","<hr />");
|
||||
|
||||
Matcher m = Regex.WEB_URL_PATTERN.matcher(text);
|
||||
StringBuffer sb = new StringBuffer(text.length() + 512);
|
||||
@ -2009,6 +2010,10 @@ public class LocalStore extends Store implements Serializable
|
||||
m.appendReplacement(sb, "$0");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
m.appendTail(sb);
|
||||
sb.append("</pre></body></html>");
|
||||
text = sb.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user