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:
parent
dbbad480b8
commit
01d9fbbf55
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue