Prevent extra line after no margin paragraphs

pull/214/head
M66B 11 months ago
parent 100ee7a7b5
commit 80589141a3

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

Loading…
Cancel
Save