Generic quote style

This commit is contained in:
M66B
2021-07-07 19:39:09 +02:00
parent 2cb7edcf32
commit 96f0a50cd6
4 changed files with 24 additions and 7 deletions

View File

@@ -646,7 +646,14 @@ public class EntityRule {
div.appendChild(p);
Document answering = JsoupEx.parse(message.getFile(context));
div.appendChild(answering.body().tagName(quote ? "blockquote" : "p"));
Element e = answering.body();
if (quote) {
String style = e.attr("style");
style = HtmlHelper.mergeStyles(style, HtmlHelper.QUOTE_STYLE);
e.tagName("blockquote").attr("style", style);
} else
e.tagName("p");
div.appendChild(e);
msg.body().appendChild(div);