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