From 40ea1c3cb9b04df7c7eba6fd2cc10c70d3264a53 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 15 Aug 2021 21:28:33 +0200 Subject: [PATCH] Small font size debug info --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 3 +++ app/src/main/java/eu/faircode/email/Log.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 8a0af3ede6..53dc2e4be4 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -552,6 +552,9 @@ public class HtmlHelper { // Element style style = mergeStyles(style, element.attr("style")); + if ("fairemail_debug_info".equals(clazz)) + style = mergeStyles(style, "font-size: smaller"); + if (text_align) { // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center if ("center".equals(element.tagName())) { diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 278deaf1ea..52776c70fe 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -1520,7 +1520,7 @@ public class Log { sb.append(ex.toString()).append("\n").append(android.util.Log.getStackTraceString(ex)); if (log != null) sb.append(log); - String body = "
" + TextUtils.htmlEncode(sb.toString()) + "
"; + String body = "
" + TextUtils.htmlEncode(sb.toString()) + "
"; EntityMessage draft;