1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

Improved quote space handling

This commit is contained in:
M66B 2019-09-24 13:31:42 +02:00
parent 1fc0ec5db7
commit b33b72356d

View file

@ -908,13 +908,13 @@ public class MessageHelper {
String[] lines = result.split("\\r?\\n");
for (String line : lines) {
int tlevel = 0;
while (line.startsWith(">")) {
while (line.trim().startsWith(">")) {
tlevel++;
if (tlevel > level)
sb.append("<blockquote>");
line = line.substring(1);
if (line.startsWith(" "))
while (line.startsWith(" "))
line = line.substring(1);
line = line.substring(1);
}
for (int i = 0; i < level - tlevel; i++)
sb.append("</blockquote>");