Keep preformatted text in signatures, etc

pull/187/head
M66B 4 years ago
parent d99e0c893f
commit 7bddcbdb25

@ -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);

Loading…
Cancel
Save