Prevent multiple column separators

pull/189/head
M66B 4 years ago
parent cf05256111
commit fe6d859909

@ -919,8 +919,7 @@ public class HtmlHelper {
col.removeAttr("x-line-before");
}
if (next != null && col.childNodeSize() > 0)
col.appendText("\u2002"); // ensp
col.attr("x-column", "true");
}
if (merge.size() != 0)
@ -2383,6 +2382,12 @@ public class HtmlHelper {
ssb.length() > 0 && ssb.charAt(ssb.length() - 1) == '\n')
ssb.append('\n');
if ("true".equals(element.attr("x-column")) &&
ssb.length() > 1 &&
ssb.charAt(ssb.length() - 1) != '\n' &&
ssb.charAt(ssb.length() - 1) != '\u2002')
ssb.append('\u2002'); // ensp
if (debug)
ssb.append("[/" + element.tagName() + "]");
}

Loading…
Cancel
Save