mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Small improvement
This commit is contained in:
parent
235941a1bc
commit
e93b23263f
1 changed files with 4 additions and 2 deletions
|
@ -907,11 +907,13 @@ public class MessageHelper {
|
|||
String[] lines = result.split("\\r?\\n");
|
||||
for (String line : lines) {
|
||||
int tlevel = 0;
|
||||
while (line.startsWith("> ")) {
|
||||
while (line.startsWith(">")) {
|
||||
tlevel++;
|
||||
if (tlevel > level)
|
||||
sb.append("<blockquote>");
|
||||
line = line.substring(2);
|
||||
line = line.substring(1);
|
||||
if (line.startsWith(" "))
|
||||
line = line.substring(1);
|
||||
}
|
||||
for (int i = 0; i < level - tlevel; i++)
|
||||
sb.append("</blockquote>");
|
||||
|
|
Loading…
Reference in a new issue