Newline below heading

This commit is contained in:
M66B 2020-11-06 14:56:57 +01:00
parent fb03a1da12
commit acb89f8611
1 changed files with 4 additions and 2 deletions

View File

@ -758,12 +758,14 @@ public class HtmlHelper {
}
// Replace headings
if (!text_size)
for (Element h : document.select("h1,h2,h3,h4,h5,h6")) {
for (Element h : document.select("h1,h2,h3,h4,h5,h6")) {
if (!"false".equals(h.attr("x-line-after")))
h.appendElement("br");
if (!text_size) {
h.appendElement("br");
h.tagName("strong");
}
}
// Paragraphs
for (Element p : document.select("p")) {