Ensure line break before line

pull/215/head
M66B 8 months ago
parent 40cade4342
commit ee2be885fc

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

Loading…
Cancel
Save