Improved quote space handling

pull/162/head
M66B 5 years ago
parent 1fc0ec5db7
commit b33b72356d

@ -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>");

Loading…
Cancel
Save