Debug: styles

This commit is contained in:
M66B
2023-02-24 16:01:34 +01:00
parent dc169a1120
commit 276cd473d3
2 changed files with 7 additions and 0 deletions

View File

@@ -6959,6 +6959,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
element.attr("x-computed", computed);
}
if (BuildConfig.DEBUG) {
d = HtmlHelper.sanitizeView(context, d, false);
d.outputSettings().prettyPrint(true).outline(true).indentAmount(1);
}
File dir = Helper.ensureExists(new File(context.getFilesDir(), "shared"));
File share = new File(dir, message.id + ".txt");
Helper.writeText(share, d.html());