Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46ddc7d8 authored by Jesse Vincent's avatar Jesse Vincent
Browse files

text->html now does a better job converting

---------------------------------------------------------
parent cdf0693e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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();