Prevent extra line after no margin paragraphs

This commit is contained in:
M66B
2024-02-08 17:50:32 +01:00
parent 100ee7a7b5
commit 80589141a3

View File

@@ -1148,7 +1148,8 @@ public class HtmlHelper {
if (TextUtils.isEmpty(p.text())) {
p.attr("x-line-before", "false");
p.attr("x-line-after", "true");
if (!"false".equals(p.attr("x-line-after")))
p.attr("x-line-after", "true");
} else
p.attr("x-paragraph", "true");
}