mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Fixed missing new lines
This commit is contained in:
parent
17008265eb
commit
66cbb9dc76
1 changed files with 7 additions and 6 deletions
|
@ -84,11 +84,6 @@ public class HtmlHelper {
|
|||
private static final int MAX_FULL_TEXT_SIZE = 1024 * 1024; // characters
|
||||
private static final int TRACKING_PIXEL_SURFACE = 25; // pixels
|
||||
|
||||
private static final List<String> heads = Collections.unmodifiableList(Arrays.asList(
|
||||
"h1", "h2", "h3", "h4", "h5", "h6", "p", "ol", "ul", "table", "br", "hr"));
|
||||
private static final List<String> tails = Collections.unmodifiableList(Arrays.asList(
|
||||
"h1", "h2", "h3", "h4", "h5", "h6", "p", "ol", "ul", "li"));
|
||||
|
||||
private static final HashMap<String, Integer> x11ColorMap = new HashMap<>();
|
||||
|
||||
static {
|
||||
|
@ -1180,6 +1175,11 @@ public class HtmlHelper {
|
|||
private int plevel = 0;
|
||||
private int lindex = 0;
|
||||
|
||||
private final List<String> heads = Collections.unmodifiableList(Arrays.asList(
|
||||
"h1", "h2", "h3", "h4", "h5", "h6", "p", "ol", "ul", "table", "br", "hr"));
|
||||
private final List<String> tails = Collections.unmodifiableList(Arrays.asList(
|
||||
"h1", "h2", "h3", "h4", "h5", "h6", "p", "ol", "ul", "li"));
|
||||
|
||||
public void head(Node node, int depth) {
|
||||
if (node instanceof TextNode)
|
||||
if (plevel > 0) {
|
||||
|
@ -1295,7 +1295,8 @@ public class HtmlHelper {
|
|||
}
|
||||
|
||||
p.tagName("div");
|
||||
p.appendElement("br");
|
||||
if (p.parent() != null)
|
||||
p.after(document.createElement("br"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue