From 29096165a023fd10c35cdbb30bd876311783db86 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 12 Sep 2022 08:11:31 +0200 Subject: [PATCH] Added blockquote type="cite" support for Thunderbird --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index e14d025160..fc81686f32 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -548,6 +548,7 @@ public class HtmlHelper { .addAttributes("tr", "width") .addAttributes("tr", "height") .addAttributes(":all", "title") + .addAttributes("blockquote", "type") .removeAttributes("td", "colspan", "rowspan", "width") .removeAttributes("th", "colspan", "rowspan", "width") .addProtocols("img", "src", "cid") @@ -2551,6 +2552,10 @@ public class HtmlHelper { if ("true".equals(e.attr("x-border"))) return true; + // https://groups.google.com/g/mozilla.support.thunderbird/c/rwLNk3MU3Gs?pli=1 + if ("cite".equals(e.attr("type"))) + return true; + String style = e.attr("style"); String[] params = style.split(";"); for (String param : params) {