diff --git a/app/src/main/java/eu/faircode/email/HtmlEx.java b/app/src/main/java/eu/faircode/email/HtmlEx.java index c8b8e1b8f..5cfceaccd 100644 --- a/app/src/main/java/eu/faircode/email/HtmlEx.java +++ b/app/src/main/java/eu/faircode/email/HtmlEx.java @@ -276,7 +276,7 @@ public class HtmlEx { private /* static */ void withinBlockquoteConsecutive(StringBuilder out, Spanned text, int start, int end) { - out.append(""); + out.append(""); int next; for (int i = start; i < end; i = next) { @@ -294,21 +294,21 @@ public class HtmlEx { withinParagraph(out, text, i, next - nl); - if (nl == 1) { + if (nl == 0) { out.append("
\n"); } else { - for (int j = 2; j < nl; j++) { + for (int j = 0; j < nl; j++) { out.append("
"); } if (next != end) { /* Paragraph should be closed and reopened */ - out.append("

\n"); - out.append(""); + out.append("\n"); + out.append(""); } } } - out.append("

\n"); + out.append("\n"); } private /* static */ void withinParagraph(StringBuilder out, Spanned text, int start, int end) {