Prevent extra line before headings

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

@ -1117,7 +1117,9 @@ public class HtmlHelper {
// Replace headings // Replace headings
Elements hs = document.select("h1,h2,h3,h4,h5,h6"); 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_size) {
if (text_separators && view) if (text_separators && view)
for (Element h : hs) for (Element h : hs)

Loading…
Cancel
Save