Small improvement

This commit is contained in:
M66B 2019-09-23 19:18:21 +02:00
parent 444e0ebef8
commit 5b243b5a0f
2 changed files with 2 additions and 2 deletions

View File

@ -2565,7 +2565,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (debug) {
Document format = Jsoup.parse(html);
format.outputSettings().prettyPrint(true).outline(true).indentAmount(1);
String[] lines = format.outerHtml().split("\\r?\\n");
String[] lines = format.html().split("\\r?\\n");
for (int i = 0; i < lines.length; i++)
lines[i] = Html.escapeHtml(lines[i]);
html += "<pre>" + TextUtils.join("<br>", lines) + "</pre>";

View File

@ -907,7 +907,7 @@ public class HtmlHelper {
}
}
return doc.outerHtml();
return doc.html();
}
public static class AnnotatedSource {