mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Keep preformatted text in signatures, etc
This commit is contained in:
@@ -1931,7 +1931,8 @@ public class HtmlHelper {
|
||||
block.add((TextNode) node);
|
||||
} else if (node instanceof Element) {
|
||||
element = (Element) node;
|
||||
if ("true".equals(element.attr("x-plain")))
|
||||
if ("pre".equals(element.tagName()) ||
|
||||
"true".equals(element.attr("x-plain")))
|
||||
plain++;
|
||||
if (element.isBlock()) {
|
||||
normalizeText(block);
|
||||
@@ -1944,7 +1945,8 @@ public class HtmlHelper {
|
||||
public void tail(Node node, int depth) {
|
||||
if (node instanceof Element) {
|
||||
element = (Element) node;
|
||||
if ("true".equals(element.attr("x-plain")))
|
||||
if ("pre".equals(element.tagName()) ||
|
||||
"true".equals(element.attr("x-plain")))
|
||||
plain--;
|
||||
if (element.isBlock() || "br".equals(element.tagName())) {
|
||||
normalizeText(block);
|
||||
|
||||
Reference in New Issue
Block a user