mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Prevent multiple column separators
This commit is contained in:
@@ -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() + "]");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user