1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 09:16:00 +00:00

Ensure line break before line

This commit is contained in:
M66B 2024-05-29 15:47:19 +02:00
parent 40cade4342
commit ee2be885fc

View file

@ -3808,6 +3808,8 @@ public class HtmlHelper {
boolean dashed = "true".equals(element.attr("x-dashed"));
float stroke = context.getResources().getDisplayMetrics().density;
float dash = (dashed ? line_dash_length : 0f);
if (ssb.length() > 0 && ssb.charAt(ssb.length() - 1) != '\n')
ssb.append('\n');
ssb.append("\uFFFC"); // Object replacement character
setSpan(ssb, new LineSpan(colorSeparator, stroke, dash), start, ssb.length());
break;