mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Added composing indentation
This commit is contained in:
@@ -136,16 +136,22 @@ public class HtmlEx {
|
||||
int option) {
|
||||
int next;
|
||||
for (int i = start; i < end; i = next) {
|
||||
next = text.nextSpanTransition(i, end, QuoteSpan.class);
|
||||
QuoteSpan[] quotes = text.getSpans(i, next, QuoteSpan.class);
|
||||
int n1 = text.nextSpanTransition(i, end, QuoteSpan.class);
|
||||
int n2 = text.nextSpanTransition(i, end, eu.faircode.email.IndentSpan.class);
|
||||
Class type = (n1 < n2 ? QuoteSpan.class : eu.faircode.email.IndentSpan.class);
|
||||
next = Math.min(n1, n2);
|
||||
Object[] quotes = text.getSpans(i, next, type);
|
||||
|
||||
for (QuoteSpan quote : quotes) {
|
||||
out.append("<blockquote>");
|
||||
for (Object quote : quotes) {
|
||||
if (quote instanceof QuoteSpan)
|
||||
out.append("<blockquote style=\"border:3px solid #ccc; padding-left: 3px;\">");
|
||||
else
|
||||
out.append("<blockquote>");
|
||||
}
|
||||
|
||||
withinBlockquote(out, text, i, next, option);
|
||||
|
||||
for (QuoteSpan quote : quotes) {
|
||||
for (Object quote : quotes) {
|
||||
out.append("</blockquote>\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user