|
|
@ -2000,7 +2000,8 @@ public class HtmlHelper {
|
|
|
|
element = (Element) node;
|
|
|
|
element = (Element) node;
|
|
|
|
if ("true".equals(element.attr("x-plain")))
|
|
|
|
if ("true".equals(element.attr("x-plain")))
|
|
|
|
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);
|
|
|
|
normalizeText(block);
|
|
|
|
block.clear();
|
|
|
|
block.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2013,7 +2014,8 @@ public class HtmlHelper {
|
|
|
|
element = (Element) node;
|
|
|
|
element = (Element) node;
|
|
|
|
if ("true".equals(element.attr("x-plain")))
|
|
|
|
if ("true".equals(element.attr("x-plain")))
|
|
|
|
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())) {
|
|
|
|
"br".equals(element.tagName())) {
|
|
|
|
normalizeText(block);
|
|
|
|
normalizeText(block);
|
|
|
|
block.clear();
|
|
|
|
block.clear();
|
|
|
|