mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Fixed compose whitespace/newlines
This commit is contained in:
parent
39499dac43
commit
44f8ee9d86
1 changed files with 4 additions and 2 deletions
|
@ -2000,7 +2000,8 @@ public class HtmlHelper {
|
|||
element = (Element) node;
|
||||
if ("true".equals(element.attr("x-plain")))
|
||||
plain++;
|
||||
if ("true".equals(element.attr("x-block"))) {
|
||||
if (element.isBlock() /* x-block is never false */ ||
|
||||
"true".equals(element.attr("x-block"))) {
|
||||
normalizeText(block);
|
||||
block.clear();
|
||||
}
|
||||
|
@ -2013,7 +2014,8 @@ public class HtmlHelper {
|
|||
element = (Element) node;
|
||||
if ("true".equals(element.attr("x-plain")))
|
||||
plain--;
|
||||
if ("true".equals(element.attr("x-block")) ||
|
||||
if (element.isBlock() /* x-block is never false */ ||
|
||||
"true".equals(element.attr("x-block")) ||
|
||||
"br".equals(element.tagName())) {
|
||||
normalizeText(block);
|
||||
block.clear();
|
||||
|
|
Loading…
Reference in a new issue