mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Prevent extra lines before/after paragraphs
This commit is contained in:
parent
c4394cb2d4
commit
2c51ee38bf
1 changed files with 2 additions and 0 deletions
|
@ -3268,6 +3268,7 @@ public class HtmlHelper {
|
|||
ssb.append('\n');
|
||||
|
||||
if ("true".equals(element.attr("x-line-before")) &&
|
||||
!"true".equals(element.attr("x-paragraph")) &&
|
||||
(prev == null || !"true".equals(prev.attr("x-line-after"))) &&
|
||||
ssb.length() > 0 && ssb.charAt(ssb.length() - 1) == '\n')
|
||||
ssb.append('\n');
|
||||
|
@ -3696,6 +3697,7 @@ public class HtmlHelper {
|
|||
ssb.append('\n');
|
||||
|
||||
if ("true".equals(element.attr("x-line-after")) &&
|
||||
!"true".equals(element.attr("x-paragraph")) &&
|
||||
ssb.length() > 0 && ssb.charAt(ssb.length() - 1) == '\n')
|
||||
ssb.append('\n');
|
||||
|
||||
|
|
Loading…
Reference in a new issue