1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 21:55:13 +00:00

Prevent extra line before headings

This commit is contained in:
M66B 2024-02-09 14:28:48 +01:00
parent 8011afccc7
commit 93cad5aa7d

View file

@ -1117,7 +1117,9 @@ public class HtmlHelper {
// Replace headings
Elements hs = document.select("h1,h2,h3,h4,h5,h6");
hs.attr("x-line-before", "true");
for (Element h : hs)
if (!"false".equals(h.attr("x-line-before")))
h.attr("x-line-before", "true");
if (text_size) {
if (text_separators && view)
for (Element h : hs)