Prevent extra line before headings

pull/214/head
M66B 5 months ago
parent 8011afccc7
commit 93cad5aa7d

@ -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…
Cancel
Save