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:
parent
8011afccc7
commit
93cad5aa7d
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue