Make sure there is a newline before a blockquote

pull/178/head
M66B 5 years ago
parent dbbad480b8
commit 01d9fbbf55

@ -1936,6 +1936,8 @@ public class HtmlHelper {
ssb.setSpan(new RelativeSizeSpan(FONT_LARGE), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
break;
case "blockquote":
if (start > 0 && ssb.charAt(start - 1) != '\n')
ssb.insert(start++, "\n");
ssb.setSpan(new QuoteSpan(), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
break;
case "br":

Loading…
Cancel
Save