mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Optional heading separator lines
This commit is contained in:
parent
2797c050fc
commit
3ef1cb233f
1 changed files with 10 additions and 2 deletions
|
@ -753,8 +753,16 @@ public class HtmlHelper {
|
|||
}
|
||||
|
||||
// Replace headings
|
||||
if (!text_size)
|
||||
document.select("h1,h2,h3,h4,h5,h6").tagName("strong");
|
||||
Elements hs = document.select("h1,h2,h3,h4,h5,h6");
|
||||
if (text_size) {
|
||||
if (text_separators && view)
|
||||
for (Element h : hs)
|
||||
h.appendElement("hr")
|
||||
.attr("x-block", "true");
|
||||
else
|
||||
hs.attr("x-line-after", "true");
|
||||
} else
|
||||
hs.tagName("strong");
|
||||
|
||||
// Paragraphs
|
||||
for (Element p : document.select("p")) {
|
||||
|
|
Loading…
Reference in a new issue