Guarantee line break after lines

pull/207/head
M66B 3 years ago
parent e168a4a4f5
commit 5c81e38c6b

@ -3456,6 +3456,12 @@ public class HtmlHelper {
}
}, document.body());
for (LineSpan line : ssb.getSpans(0, ssb.length(), LineSpan.class)){
int end = ssb.getSpanEnd(line);
if (end<ssb.length()&& ssb.charAt(end)!='\n')
ssb.insert(end, "\n");
}
if (debug)
for (int i = ssb.length() - 1; i >= 0; i--) {
char kar = ssb.charAt(i);

Loading…
Cancel
Save