mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prevent multiple column separators
This commit is contained in:
parent
cf05256111
commit
fe6d859909
1 changed files with 7 additions and 2 deletions
|
@ -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…
Reference in a new issue