mirror of
https://github.com/M66B/FairEmail.git
synced 2026-02-03 13:35:54 +01:00
Make sure there is a newline before a blockquote
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user