1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00
This commit is contained in:
M66B 2022-01-19 21:27:43 +01:00
parent 59208b20ee
commit 54ddd065f9

View file

@ -3277,10 +3277,8 @@ public class HtmlHelper {
}
static String toHtml(Spanned spanned, Context context) {
Log.i("MMM text=" + spanned.toString().replace("\n", "|"));
HtmlEx converter = new HtmlEx(context);
String html = converter.toHtml(spanned, TO_HTML_PARAGRAPH_LINES_INDIVIDUAL);
Log.i("MMM html=" + html.replace("\n", "|"));
Document doc = JsoupEx.parse(html);
@ -3360,8 +3358,6 @@ public class HtmlHelper {
last.remove();
}
Log.i("MMM fixed=" + doc.html().replace("\n", "|"));
return doc.html();
}