1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 15:32:52 +00:00

Make sure there is a newline before a blockquote

This commit is contained in:
M66B 2020-04-30 08:32:59 +02:00
parent dbbad480b8
commit 01d9fbbf55

View file

@ -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":