Prevent multiple column separators

This commit is contained in:
M66B 2020-11-14 20:02:33 +01:00
parent cf05256111
commit fe6d859909
1 changed files with 7 additions and 2 deletions

View File

@ -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() + "]");
}