Both margin and padding can be set

This commit is contained in:
M66B 2023-04-16 11:59:11 +02:00
parent 3f9fcbb0f1
commit c4394cb2d4
1 changed files with 3 additions and 2 deletions

View File

@ -1001,9 +1001,10 @@ public class HtmlHelper {
else if (key.endsWith("bottom"))
p[0] = null;
if (p[0] != null)
// Both margin and padding can be set
if (p[0] != null && !"true".equals(element.attr("x-line-before")))
element.attr("x-line-before", Boolean.toString(p[0] > 0.5));
if (p[2] != null)
if (p[2] != null && !"true".equals(element.attr("x-line-after")))
element.attr("x-line-after", Boolean.toString(p[2] > 0.5));
}
break;