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:
parent
1fc0ec5db7
commit
b33b72356d
1 changed files with 3 additions and 3 deletions
|
@ -908,13 +908,13 @@ public class MessageHelper {
|
||||||
String[] lines = result.split("\\r?\\n");
|
String[] lines = result.split("\\r?\\n");
|
||||||
for (String line : lines) {
|
for (String line : lines) {
|
||||||
int tlevel = 0;
|
int tlevel = 0;
|
||||||
while (line.startsWith(">")) {
|
while (line.trim().startsWith(">")) {
|
||||||
tlevel++;
|
tlevel++;
|
||||||
if (tlevel > level)
|
if (tlevel > level)
|
||||||
sb.append("<blockquote>");
|
sb.append("<blockquote>");
|
||||||
line = line.substring(1);
|
while (line.startsWith(" "))
|
||||||
if (line.startsWith(" "))
|
|
||||||
line = line.substring(1);
|
line = line.substring(1);
|
||||||
|
line = line.substring(1);
|
||||||
}
|
}
|
||||||
for (int i = 0; i < level - tlevel; i++)
|
for (int i = 0; i < level - tlevel; i++)
|
||||||
sb.append("</blockquote>");
|
sb.append("</blockquote>");
|
||||||
|
|
Loading…
Reference in a new issue