Fixed compose whitespace/newlines

This commit is contained in:
M66B 2020-11-08 09:17:06 +01:00
parent 39499dac43
commit 44f8ee9d86
1 changed files with 4 additions and 2 deletions

View File

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